Zend Framework Auth

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Zend Framework Auth

Post by Eran »

Deciding where to store sessions is really dependent on specific requirements
Nicely put :)
nutkenz
Forum Contributor
Posts: 155
Joined: Tue Jul 19, 2005 12:25 pm

Re: Zend Framework Auth

Post by nutkenz »

None of those situations apply; I've tested both on my testing/desktop Windows environment as on my production Linux server.
nutkenz
Forum Contributor
Posts: 155
Joined: Tue Jul 19, 2005 12:25 pm

Re: Zend Framework Auth

Post 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?
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Zend Framework Auth

Post by Eran »

It could have - perhaps the sessions get deleted in garbage collection. What server are you running?
nutkenz
Forum Contributor
Posts: 155
Joined: Tue Jul 19, 2005 12:25 pm

Re: Zend Framework Auth

Post 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)?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Zend Framework Auth

Post by Benjamin »

You may want to reread some of the previous responses.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Zend Framework Auth

Post 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.
nutkenz
Forum Contributor
Posts: 155
Joined: Tue Jul 19, 2005 12:25 pm

Re: Zend Framework Auth

Post by nutkenz »

Ah, Apache on both.
nutkenz
Forum Contributor
Posts: 155
Joined: Tue Jul 19, 2005 12:25 pm

Re: Zend Framework Auth

Post by nutkenz »

Any more suggestions on possible solutions to the sessions expiring without the browser being closed?
nutkenz
Forum Contributor
Posts: 155
Joined: Tue Jul 19, 2005 12:25 pm

Re: Zend Framework Auth

Post 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.
Post Reply