Welcome Guest, Not a member yet? Register   Sign In
ionauth and shopping cart
#4

[eluser]WanWizard[/eluser]
This is a known issue with the way most users implement authentication.

Instead of having a proper data structure within the session to store user related information, and erasing/resetting that when a user logs out, they take the lazy option, and do a $this->session->sess_destroy(). That takes care of the logout, but also deletes all other valuable information in the session.

If you look in the Ion_auth library, in the logout() method, there a line that says
Code:
$this->ci->session->sess_destroy();

Comment this to retain your session. The unset_userdata() calls above that line will make sure the user is logged out.


Messages In This Thread
ionauth and shopping cart - by El Forum - 08-23-2010, 02:07 PM
ionauth and shopping cart - by El Forum - 08-24-2010, 01:44 AM
ionauth and shopping cart - by El Forum - 08-24-2010, 11:27 AM
ionauth and shopping cart - by El Forum - 08-24-2010, 12:16 PM
ionauth and shopping cart - by El Forum - 08-24-2010, 12:23 PM
ionauth and shopping cart - by El Forum - 08-25-2010, 01:51 PM
ionauth and shopping cart - by El Forum - 08-26-2010, 12:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB