[liphp] session timeout problem

Frank Imburgio [email protected]
Tue, 03 Jun 2003 15:06:29 -0400


When you use cookies for session handling, they have an expiration time 
in them.  We still use a session class created by PHPlib, which was 
later adopted by the PHP team and rolled into PHP 4.0. Look here for the 
cookie_timeout value, I think it's what you're looking for:

http://us3.php.net/session

So basically, session expiration is built in, and you just need to use 
what's there -- I think.

Venkatagiriyappa, Veena wrote:

>Hi,
>I am not very familiar with php session handling.  I was wondering how I
>could write some
>code that would end the session after a certain amount of time. Thus, if the
>user leaves the window open by mistake, I don't have to worry about a
>foreign user making changes. I have a table in my postgresql database for
>the session. 
>And how can I know if the page is active or inactive?(how to recognise the
>page reload?). I really need this to work.
>I am hoping to get a fast reply on this
>Veena
>_______________________________________________
>Liphp mailing list
>[email protected]
>https://www.liphp.org/mailman/listinfo/liphp
>  
>