How session losts?

[eluser]Suhas nazir[/eluser]
I am just wandering about session concept ?can any one please explain how session lost when we clear the private data of browser????

A users session is linked to a session_id.

To determine which session belongs to a user, this session_id is sent to the browser using a cookie. At the next request, the cookie is sent back to the server, where CI can extract the session_id from the cookie, and lookup the correct session.

If you erase your local browser data, you also delete the cookie, so CI doesn't recognize you anymore, and will generate a new session for you.

[eluser]Suhas nazir[/eluser]
Many Many thanks

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.