Welcome Guest, Not a member yet? Register   Sign In
Custom logout function not working
#2

[eluser]adamp1[/eluser]
I know right away why it doesn't work, change
Code:
$logout = $this->session->sess_destroy();

To this
Code:
$logout = $this->session->sess_destroy();
$this->session->sess_create();

This is a common mistake everyone makes. Not 100% sure why it doesn't work the other way, I did know but forgotten now. I believe its got something to do with the cookie not being erased till next page load or something.


Messages In This Thread
Custom logout function not working - by El Forum - 03-15-2008, 12:26 AM
Custom logout function not working - by El Forum - 03-15-2008, 02:33 AM
Custom logout function not working - by El Forum - 03-15-2008, 12:16 PM
Custom logout function not working - by El Forum - 03-15-2008, 02:30 PM
Custom logout function not working - by El Forum - 03-15-2008, 10:42 PM
Custom logout function not working - by El Forum - 03-16-2008, 01:13 AM
Custom logout function not working - by El Forum - 03-16-2008, 10:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB