Re: ok now my sessions are *not* timing out

From: Date: Tue, 11 Mar 2003 17:19:08 +0000
Subject: Re: ok now my sessions are *not* timing out
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139146@lists.php.net to get a copy of this message
At 14:38 11.03.2003, freaky deaky said: --------------------[snip]-------------------- >the js looks like: ><snip> ><script language="JavaScript"> ><!-- >function timeout_2MinuteAlert() >{if(confirm('Warning: You are about to time out. As a security measure, we >log you out after 20 minutes of inactivity. You have been inactive for 18 >minutes. Click "Ok" within the next 2 minutes to continue with your >application, otherwise you will be logged out. If you are logged out, you >will need to log in again to continue your session.')) >{ >history.go(0) >} >} --------------------[snip]-------------------- I believe this is a JS issue only - have a look at the timeout_2MinuteAlert() function. After the user clicks on OK, it performs a history.go(0), which moves the browser from this page to the previous one, thus effectively removing the final alert timeout. I'm pretty sure that removing history.go(0) from the 2Minute alert should solve the problem. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#139146) next »