Thank you for submitting your request to Quest Software Technical Support. We are unable to process your request because our records indicate that you are not registered for Technical Support.
To register, logon to our Supportlink web site http://www.quest.com/support , and self-register from the web. Or, you can phone Quest at one of the numbers below to register. Once you have registered, you can submit your request within Supportlink, by email at [EMAIL PROTECTED], by phone at one of the numbers below. Please do not reply to this email. If this is an URGENT matter please contact Quest Technical Support via telephone at one of the numbers listed below. Thank you, Quest Software Technical Support www.quest.com/support Quest Software Technical Support - Canada 902.442.5700 Quest Software Technical Support - United Kingdom 44.1628.601007 Quest Software Technical Support - United States 949.754.8000 > --------------------Original Message-------------------- > From: "Cezar Nasui" [mailto:[EMAIL PROTECTED] > Sent: Fri, 22 Aug 2003 15:15:57 -0400 > To: "Struts Users Mailing List" [EMAIL PROTECTED] > Subject: Authentication Filter not working > > Hi all, > > I try to use a filter for the authentication so I created a class which > implements filter with the following doFilter method (I found this in a > post) > > <code> > public void doFilter(ServletRequest _request, ServletResponse _response, > FilterChain _chain) > throws IOException, ServletException > { > String redirectFailure = "/logon.jsp"; > > HttpSession session = ((HttpServletRequest)_request).getSession(false); > if ((session == null) || (session.getAttribute("loggedIn")== null) ) > { > context.getRequestDispatcher(redirectFailure) > .forward(_request,_response); > } > else { > _chain.doFilter(_request, _response); > } > } > </code> > > I added this in the web.xml file: > <code> > <filter> > <filter-name>SessionFilter</filter-name> > <filter-class>dbmanager.SessionFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>SessionFilter</filter-name> > <url-pattern>/DBManager/*</url-pattern> > </filter-mapping> > </code> > > and I also : > - setted nocache to true for the Action servlet > - in lofgoff I invalide the session I create in login along with the > loggedIn variable > > The problem : when I log out and then do a back to the last page everything > is working !!! > > I overlooked something, any ideas? > > Thanks, > Cezar > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >

