Page 1 of 1

Keeping A Session Alive

Posted: Sun Jul 23, 2006 7:46 pm
by tecktalkcm0391
Is there a way to keep a session alive under this condition:

Say the user is on the site and they get up and they are still on the site's page, but haven't refreshed it or moved anywhere else, so there session expires and then they get logged out. But I want them to stay logged in as log as they have a page opened in the browser. Is this possible? How would I do it?

Posted: Sun Jul 23, 2006 7:52 pm
by feyd
change your garbage collection routine to run less often and/or set the cookie to expire farther out (or like a standard session)

Posted: Mon Jul 24, 2006 7:56 am
by tecktalkcm0391
I've see Javascript on pages that seem to keep the session alive is that possible?

Posted: Mon Jul 24, 2006 8:03 am
by feyd
Yes, but you need to be careful as Javascript isn't guaranteed to run.