• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatic logout from website after some idle time

#1
I have a web application that is automatic logout after 2 to 2:30 hrs of inactivity , i already created MY_Session library to not update existing session while ajax call also set session_update_time to '0' and session_expiration to zero but not working for me.

Please help me from out this issue.
Reply

#2
(06-04-2019, 12:02 AM)AaronLe Wrote: I have a web application that is automatic logout after 2 to 2:30 hrs of inactivity , i already created MY_Session library to not update existing session while ajax call also set session_update_time to '0' and session_expiration to zero but not working for me.

Please help me from out this issue.

In your config.php file change the sess_expiration.

PHP Code:
/*
| 'sess_expiration'
|
| The number of SECONDS you want the session to last.
| Setting to 0 (zero) means expire when the browser is closed.
*/

$config['sess_expiration'] = 7200/* Change the value to your desired */ 
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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