sess_expiration has no effect on sessions |
06-15-2015, 03:51 PM
(This post was last modified: 06-16-2015, 07:50 AM by codeIgniter2015. Edit Reason: Update )
Session expiration does not seem to have any effect on my session variables.
Below is my session config: PHP Code: $config['sess_driver'] = 'database'; Please correct me if I am wrong but since I have set my sess_expiration to 2 hours, I would expect that all my sessions variables would be destroyed after 2 hours. But no matter what I set my sess_expiration, the sessions variables are always available once set. I do have a AJAX running on that page updating a value every 10 seconds. Is there something that I am missing here? Thanks in advance.
Yes, your AJAX script is keeping the session alive ... sess_expiration has an effect over inactive sessions.
Thanks for the response. I added another session variable to keep a track of logged in time.
|
Welcome Guest, Not a member yet? Register Sign In |