Nicely putDeciding where to store sessions is really dependent on specific requirements
Zend Framework Auth
Moderator: General Moderators
Re: Zend Framework Auth
Re: Zend Framework Auth
None of those situations apply; I've tested both on my testing/desktop Windows environment as on my production Linux server.
Re: Zend Framework Auth
Can anyone else think of a possible reason why my sessions are closed while the browser is still open?
P.S. The fact that the PC goes into hibernation and comes out of it should have no effect on the state of the browser, correct?
P.S. The fact that the PC goes into hibernation and comes out of it should have no effect on the state of the browser, correct?
Re: Zend Framework Auth
It could have - perhaps the sessions get deleted in garbage collection. What server are you running?
Re: Zend Framework Auth
pytrin wrote:It could have - perhaps the sessions get deleted in garbage collection. What server are you running?
Do you also need OS versions (Vista/CentOs 2.6.18)?nutkenz wrote:I've tested both on my testing/desktop Windows environment as on my production Linux server.
Re: Zend Framework Auth
You may want to reread some of the previous responses.
Re: Zend Framework Auth
This is not a server, this is an OS. A server would be Apache, IIS and so forth.nutkenz wrote:I've tested both on my testing/desktop Windows environment as on my production Linux server.
Re: Zend Framework Auth
Ah, Apache on both.
Re: Zend Framework Auth
Any more suggestions on possible solutions to the sessions expiring without the browser being closed?
Re: Zend Framework Auth
These are my cookie settings btw:
It seems like the expiration takes a lot longer on my Windows development environment than on the Linux production server. At least several hours locally but only a matter of minutes on the production server.
Code: Select all
// Configuration
$sessionDuration = 60*60*12;
ini_set("cookie_lifetime",0); // Until browser closes
ini_set("session.gc_maxlifetime",$sessionDuration);
ini_set("session.auto_start",0);