there's no way to do this...

what you can do is to redirect the user as a reaction to one of his actions,
pressing a link, submitting a form...

you just cant make his browser do stuff...


:: 
  Mikkel Bruun
  Senior IT Developer
  [EMAIL PROTECTED]
  Direct: +45 32 88 22 73

  Valtech A/S
  Kanonbaadsvej 10
  DK-1437 Copenhagen
  Tel  +45 32 88 20 00
  Fax +45 32 88 20 20



> -----Oprindelig meddelelse-----
> Fra: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
> Sendt: 29 August 2001 14:37
> Til: [EMAIL PROTECTED]
> Emne: Re: How to catch the Session Time Out event ??
> 
> 
> I have an idea. Run a thread  which continously checks currentTime - 
> session.getLastAccessedTime(). If that is greatetr than 15 minutes
> this thread forwards to the index page.
> 
> 
> 
> >From: "Xavier Brunel" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: "'Struts-User" <[EMAIL PROTECTED]>
> >Subject: How to catch the Session Time Out event ??
> >Date: Wed, 29 Aug 2001 14:29:23 +0200
> >
> >Hi all,
> >
> >I am using Struts for an Intranet application 
> (Linux,Sybase,Java) and it is
> >working very well.
> >The last thing I would like to do is forwarding 
> automatically the current
> >client to the welcome page when his session is timeout, 
> through a call to a
> >particular ActionForward of struts-config.xml
> >
> >I built a JSP page (index.jsp) who calls the correct forward :
> >----------------------------------------------------------------
> ><%@ page language="java" %>
> ><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> ><logic:forward name="welcome"/>
> >----------------------------------------------------------------
> >I have the correct struts-config.xml structure (when i call the jsp 
> >directly
> >i actually go to the welcome page who is a template).
> >-------------------------------------------------------------
> ><global-forwards>
> >         <forward name="welcome"  path="/jsp/t-welcome.jsp"/>
> ></global-forwards>
> >-------------------------------------------------------------
> >
> >But I have one last problem :
> >I would like to know how to catch the session time out 
> event, in order to
> >call the index.jsp page.
> >As anybody an idea about this ???
> >
> >Xavier
> >
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at 
> http://explorer.msn.com/intl.asp
> 

Reply via email to