CodeIgniter Forums
automatic logout from website after some idle time - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: automatic logout from website after some idle time (/showthread.php?tid=68859)



automatic logout from website after some idle time - Rahul Ranjan - 09-05-2017

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.

Thankyou


RE: automatic logout from website after some idle time - InsiteFX - 09-06-2017

You can use the CodeIgniter is_ajax_request();

To check to see if the request is from Ajax.

You also need to clear the session array.

Make sure that the web page is not being cached.