Page 2 of 2
Re: Zend Framework Auth
Posted: Wed Jul 09, 2008 5:41 pm
by Eran
Deciding where to store sessions is really dependent on specific requirements
Nicely put

Re: Zend Framework Auth
Posted: Wed Jul 09, 2008 8:27 pm
by nutkenz
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
Posted: Thu Jul 10, 2008 8:28 pm
by nutkenz
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?
Re: Zend Framework Auth
Posted: Thu Jul 10, 2008 8:31 pm
by Eran
It could have - perhaps the sessions get deleted in garbage collection. What server are you running?
Re: Zend Framework Auth
Posted: Thu Jul 10, 2008 8:43 pm
by nutkenz
pytrin wrote:It could have - perhaps the sessions get deleted in garbage collection. What server are you running?
nutkenz wrote:I've tested both on my testing/desktop Windows environment as on my production Linux server.
Do you also need OS versions (Vista/CentOs 2.6.18)?
Re: Zend Framework Auth
Posted: Thu Jul 10, 2008 9:06 pm
by Benjamin
You may want to reread some of the previous responses.
Re: Zend Framework Auth
Posted: Thu Jul 10, 2008 9:27 pm
by Eran
nutkenz wrote:I've tested both on my testing/desktop Windows environment as on my production Linux server.
This is not a server, this is an OS. A server would be Apache, IIS and so forth.
Re: Zend Framework Auth
Posted: Thu Jul 10, 2008 11:29 pm
by nutkenz
Ah, Apache on both.
Re: Zend Framework Auth
Posted: Sat Jul 12, 2008 1:20 pm
by nutkenz
Any more suggestions on possible solutions to the sessions expiring without the browser being closed?
Re: Zend Framework Auth
Posted: Mon Jul 14, 2008 1:20 pm
by nutkenz
These are my cookie settings btw:
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);
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.