session and cookie question - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: session and cookie question (/showthread.php?tid=71112) |
session and cookie question - lsepolis123 - 07-07-2018 PHP Code: public function logout() { IS the above code - deletes and cookies? If put this >>> // inside logout() getting 500 ERROR AFTER LOGOUT, WHAT TO DO TO DELETE COOKIES??? PHP Code: if ($this->input->get_cookie('user_id') !== NULL) { // SET IN LOGIN SECTION AS PHP Code: // SET IN LOGIN SECTION AS RE: session and cookie question - Pertti - 07-08-2018 Try to switch on logging and see if a specific error is logged. Tho in your code, the one thing I would check is session destroy method. You are destroying the session, then adding flash-data to session, there might be some conflict with that - you might have to recreate session before you can call set_flashdata. |