Welcome Guest, Not a member yet? Register   Sign In
Session expires or doesn't get set?
#2

[eluser]Skippy[/eluser]
The timezone difference may indeed be the problem. I had experienced a similar issue and I solved it by doing this in config.php:

Code:
$config['time_reference'] = 'GMT';

My problem was that the CI session got reset after about 3 minutes.

As you probably know, cookie lifetimes depends on both the server and the client agreeing on what time it is, and when they don't strange things happen. I can only guess that this is what was happening to me.

Another, less elegant, solution that also worked for me was to set "sess_time_to_update" to a value that will cover the time shift. But since you cannot predict what the shift may be between the server and an arbitrary user, you would have to enter a very big value.

So, setting time_reference to GMT really seems to be the most reliable way of solving this, at least in my case.


Messages In This Thread
Session expires or doesn't get set? - by El Forum - 05-31-2008, 01:15 PM
Session expires or doesn't get set? - by El Forum - 06-12-2008, 07:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB