CI 3.0.1 random logouts |
I use to have this issue in 2.x but I thought the issue was addressed in CI 3.x. This has happened twice and I cannot figure out why. The 1st time it happened I was debugging and using die and var_dump a lot so I am not sure if that caused it? I might have deleted/recreated database which I know what would cause the issue; but I am pretty sure I didn't.
I am not sure what caused it the 2nd time? Here are my settings: $config['sess_driver'] = 'database'; $config['sess_cookie_name'] = 'phppos'; $config['sess_expiration'] = 0; $config['sess_save_path'] = 'sessions'; $config['sess_match_ip'] = FALSE; $config['sess_time_to_update'] = 300; $config['sess_regenerate_destroy'] = FALSE; Do you know what can cause the session to be destroyed? I didn't check if the cookie was missing but next time it happens I will. I am using Safari 9 on mac os x
Have you tried setting the $config['sess_time_to_update'] to 0 so that session is not regenerated automatically.
http://www.codeigniter.com/user_guide/li...references That might help. Best wishes, Paul. (09-16-2015, 07:02 AM)PaulD Wrote: Have you tried setting the $config['sess_time_to_update'] to 0 so that session is not regenerated automatically. I actually changed that to 1 just to mess with it to see if that was the issue. I looked at the code and it looks like there is locking to prevent this issue. I haven't had it happen since I posted this so I am guessing I might have been deleting the database (which is do often during development) |
Welcome Guest, Not a member yet? Register Sign In |