2011/9/7 Chema <demablo...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to