LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[Webdev] Redirect to a page if the connection is idle

[Webdev] Redirect to a page if the connection is idle

Dave O Connor doc+webdev at redbrick.dcu.ie
Wed Nov 28 15:24:45 GMT 2001


Conor Lynch said on Wed, Nov 28, 2001 at 03:14:09PM -0000:
> Hi there,
> 	I am using Apache 1.3 (connecting to Oracle IAS 9 database).
> 
> Currently, a member logs onto our site, we create a session for the member
> the sessions are deleted after 10 minutes on the database side.
> If the user clicks Submit, the they will be told the session has expired and
> a login page
> will appear.
> 
> So, is there anyway I can bring up a page stating "Your session has expired"
> automatically
> if the user does nothing for 10 minutes (rather then waiting for the user to
> do something
> and then tell them the session has expired).
> 
You could try it with javascript timeout.. Something like

setTimeout("top.location.href = 'http://www.somewhere.com/'",600000);

which would redirect regardless after 10 minutes. If someone has javascript
disabled, then it could just default to giving the message after they next do
something.

	- DoC
-- 
 We love the winter,               | <doc at redbrick.dcu.ie>
  ...it brings us closer together. |      Asleep? Moi?




More information about the Webdev mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell