Just remember to make sure the "sessionExist" object placed in session
is not serializable just in case the servlet engine you are using
supports session persistence.
-----Original Message-----
From: themins
Sent: Friday, July 28, 2000 2:22 AM
To: JSP-INTEREST
Subject: Re: Session timeout
Hi there,
One sloution is javascript as explained by Suriya Narayan. The other is
to
include a front component in every JSP page you are developing and when
your
user log in , put a value say userid or sessionExist in the session
object
and try to retrieve that value in your front component. If you get that
value it means everything is fine and session still exists. If you are
unable to get that value it means the session has expired and then take
your
user to log in page. Here is a simple sample front component
FrontComponet.jsp
-------------------
<%
if (null == session.getValue("userId"))
response.sendRedirect("/login-user.jsp");
}
%>
----- Original Message -----
From: Raghavendra i Rao <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 26, 2000 8:18 AM
Subject: Session timeout
> How can I timeout a session using JSPs ?? i.e if the User is initially
logs into my web site and then is idle for 15 minutes I want to timeout
his
sesion .After the timeout, if the User clicks on anything on the
existing
page I want to redirect him to the Login page of the application. Also
if
he goes back in the browser (Using the Back button) I do not want to
allow
him to do that. I am quite new to JSP and hence any help will be highly
appreciated.
> Thanks in advance.
>
>
> _________________________________________________
> Get Your Free Email At, http://www.rediffmail.com
>
> Partcipate in crazy Re.1 auctions at http://www.rediff.com/auctions
>
>
========================================================================
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets