> -----Original Message-----
> From: Luis Andrei Cobo [SMTP:valis@megapathdsl.net]
> Sent: Wednesday, September 13, 2000 4:17 AM
> To: tomcat-user@jakarta.apache.org
> Subject: session timeouts?
>
> I know in ASP you can do this in the global ASA file:
>
> sub Session_onEnd
> session.abandon
> response.redirect "/logged_out.asp"
> end sub
>
> how can you do this in JSP?
[Kitching Simon]
Almost the same...
<%
session.invalidate();
response.sendRedirect("/logged_out.jsp");
%>
See the java servlet API documentation for more info.. (can be
downloaded from sun).
Regards,
Simon
> Luis
|