• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Login Sessions Oh My

By default CI maintains sessions when browsers is closed. I would like to destroy a session when a user closes the browser. I have it working that using this code in the session.php library line: 655.

0, // <-- modified code.

if a user closes the browser it destroys a session. The problem i have is if a user navigates or refreshes the current page after logging in. The session does not remain. I would like to have the seesion state remain until the browser is closed.



play in config.php file

put session lifetime 86400 //in seconds, which means 1 day

and cookies will stay

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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