Forum Moderators: coopster

Message Too Old, No Replies

Session Timeout takes 2 clicks

php session timeout

         

cphillips

9:38 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



Hello,

I have read the other articles here related to session timeouts, but this seems weird to me:

My session timeouts dont redirect to the login page until the user clicks the second time.

Basically it seems like: after the session expires the first page the user goes to does not realize the session has actually expired.

I have set my php ini file session.gc_probability to 100% (for testing) and everything else should be default settings.

Any Ideas? I hope this makes sense.

Thanks for your time!

coopster

1:49 pm on Mar 29, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If this is the first user firing the gc process then that makes sense. Have you tried starting a session in another browser or on another pc to see what happens in the same situation after somebody else has triggered the gc process?