tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Realm & SSL : issue when logout
Date Tue, 27 Sep 2011 01:36:50 GMT
2011/9/7 Chema <demablogia@gmail.com>:
> ServletContext context = this.getServletContext().getContext("/app");
> if (context != null)
>        response.sendRedirect(context.getContextPath() + "/protected.html" );
>
> I hoped that login.html was return but protected.html is
>

Why getContext("/app") ??

HTTP Sessions are local to each web application.

If "protected.html" belongs to a different web application, it would
not (and cannot) know that you invalidated session in this webapp.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message