I'm using Codeigniter and Tank Auth for a e-commerce website. I'm finding that if a customer puts items into the cart (using the Codeigniter built in cart class) and then registers on the site the session is lost along with their cart (I'm presuming it generates a new session for some reason instead of keeping the same session).
Has anyone come across this problem before? and is there a simply solution that I have overlooked.
Thanks
As far as the most recent code looks like, the only place the hole session is deleted is in the
logout()
function, Tank_auth.php Line 118: https://github.com/ilkon/Tank-Auth/blob/master/application/libraries/Tank_auth.php#L118The example usage of Tank Auth uses
logout()
inactivate()
andreset_email()
- check your code for those methods. You could also change the Tank Auth logout function to something like this:... and the use it like this: $this->tankauth->logout(true);