[SOLVED] Session does not expire

BorgKing
BorgKing's picture

Joined: 2002-09-12
Posts: 314
Posted: Sun, 2005-02-20 18:23

Somehow my sessions aren't expiring, while I have the values Session Lifetime and Inactivity Timeout both set to 1 hour. When I return to my G2 installation after that time, I'm still logged in (I have closed the browser in the meantime as well). The only way I can logout is by actually clicking the logout link, but I want G2 to logout automatically after 1 hour. Any suggestions?

----

System Information
Gallery version 2.0-alpha-4+
PHP version 4.3.10 cgi
Webserver xs-httpd/3.2 gamma/0.1
Database mysqlt 3.23.58
Toolkits ImageMagick, SquareThumb, NetPBM, Gd
Operating system FreeBSD 4.10-STABLE FreeBSD 4.10-STABLE #15: Tue Se i386
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-02-20 20:27

you probably still have a session cookie with a longer lifetime from before you changed the setting to 1 hour. try removing the cookie from your browser and trying again.. does it expire correctly now?

 
volksport
volksport's picture

Joined: 2002-10-06
Posts: 239
Posted: Sun, 2005-02-20 21:34

Also, are you using a subdomain?
eg www.mydomain.com, and mydomain.com, and gallery.domain.com

sometimes if you logout on www.mydomain.com, you are still logged in under mydomain.com, etc.

I don't quite remember if gallery handles this correctly or not, because I haven't used it in awhile, but that might be something to consider.

 
BorgKing
BorgKing's picture

Joined: 2002-09-12
Posts: 314
Posted: Mon, 2005-02-21 00:45

mindless, thanks a lot, I still had my neverending cookie in the cache indeed. It expired properly now.