tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kitching Simon <Simon.Kitch...@orange.ch>
Subject RE: session timeouts?
Date Wed, 13 Sep 2000 07:33:56 GMT


> -----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

Mime
View raw message