2011/9/7 Chema <[email protected]>:
> 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: [email protected]
For additional commands, e-mail: [email protected]