Hello! I implemented two filters which work fine if session handling is done with cookies. If the session-handling is done by URL-rewriting, the session seems to be lost after the sendRedirect().
The two filters are: Loginfilter and Blockfilter (some pages must be blocked in some circumstances). The error comes up, when the block-state happens and URL-rewriting is used. Then the following happens (from catalina.out): ... Loginfilter: user is authenticated - user object exists. Blockfilter: desired page must be blocked. Redirecting to /portalmanagement/pages/block.jsp Loginfilter: user is not authenticated - user object does not exist. Redirecting to login. ... If the session-handling is done with cookies, all works fine: ... Loginfilter: user is authenticated - user object exists. Blockfilter: desired page must be blocked. Redirecting to /portalmanagement/pages/block.jsp Loginfilter: user is authenticated - user object exists. ... The code of the filter object is the following: .... public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse res = (HttpServletResponse) response; if (something) { res.sendRedirect(req.getContextPath()+onFailure); } } I would be glad to get some help, kind regards, Andreas Hartmann --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]