Forum Moderators: coopster

Message Too Old, No Replies

cookie lifetime

gone fast

         

gb_dev

1:47 am on Aug 19, 2005 (gmt 0)

10+ Year Member


I have the session cookie lifetime set to 0 (until the browser is closed) but if i hit a page, leave it for 10 minutes and press refresh..my session is gone.

if I put a value in rather than 0, (say 5 mins) will it expire 5 mins after the cookie is set or 5 minutes after the last page was hit?

mcibor

7:02 am on Aug 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It will expire 5 minutes after cookie is set.

The 10 minute time is set on the server, not in the cookie.
I'm not sure, but maybe this function does the trick:
session.gc_maxlifetime INT

If not, then look in the manual [php.net].

Best regards
Michal CIbor