Kohana 3.2 sessions are expiring too soon. My current config is:
return array(
'native' => array(
'name' => 'kohanasession',
'lifetime' => 0,
),
);
Using lifetime => 0
means that the session will end when the browser is closed. However, after 1 hour, the session expires.
I also tried to use a lifetime different (for example 36000 => 10 hours), but again, it failed.
If I use a tiny session life (e.g. 10 seconds) then the expiration works perfectly. As far as I checked, seems that if I want a session to have a lifetime longer than 1 hour, it will not work.
Finally, the relevant config we use for php.ini
session.save_handler = memcache
session.save_path="tcp://127.0.0.1:11211?persistent=1&weight=1&timeout=1&retry_interval=15"
session.cache_limiter = nocache
session.gc_probability = 0
I am really lost here. This should be simple to fix but I just cannot work it out.