session and cookie question |
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
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. |
Welcome Guest, Not a member yet? Register Sign In |