ci_session |
[eluser]St0neyx[/eluser]
Hi, I build an login system/script that sets the session.. Now i checked some stuff and found out that if you close your browser and restart the session still exists. I know the session is not an session in the normal php session way. Where is this session stored? and how do I kill/destroy the session on browser close? Would be nice when you forgot to logout the system does it for you. edit: I know i can set an expiration for the session in the config, but still i want to kill the session when the browser is closed.
[eluser]modano[/eluser]
http://ellislab.com/codeigniter/user-gui...sions.html "The Session class stores session information for each user as serialized (and optionally encrypted) data in a cookie."
[eluser]St0neyx[/eluser]
[quote author="Jamongkad" date="1183479214"]Why don't you try session_destroy();[/quote] I don't use session_destroy() because as I explained it's not an php session but an cookie. :down: Beside that i wanted an way to destroy it when the browser is closed, when i press log out the session changes so the user isn't logged in anymore, but stays logged in after closing the browser without logging out. [quote author="modano" date="1183483624"] “The Session class stores session information for each user as serialized (and optionally encrypted) data in a cookie.” [/quote] Yeah i read all that too, but where can i find the cookie and what name does it have..? i didn't encrypted it.. I looked for ci_session(the original name the user guide says) cookie in cookie folder, but no cookie there |
Welcome Guest, Not a member yet? Register Sign In |