|
As raf said, the cookie will expire when you tell it to expire, if you set the cookie to expire in 60 s, then it will expire in 60 seconds from when it was created, so if you want the cookie to expire 60 s of idle time, you can just
re-set the cookie expire time everytime the user loads a new page, so on every page you have to add a setcookie() with the correct time, so if the user opens a page, the cookie will expire in 60 s, but if after 50 seconds the user opens a new page, the cookie will be set again to expire in 60 s,
hope thats clear.
Calilo
|