Really!??? :| Is this really NOT possible?!
:S --- "Propes, Barry L " <[EMAIL PROTECTED]> escribió: > I didn't think (or know) that it was possible. From > previous posts I'd seen I got the idea it was not. > > I could be wrong on that, though. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 04, 2007 2:06 PM > To: users@tomcat.apache.org > Subject: Tomcat 4 Successfully Authentication Logout > > > Hello Everybody, > > I've a problem logging out from tomcat > form-realm-based authentication. I've been googling > but cant' find anything. > > I just want to logout the signed user. That's it. > > I'm using JSF with NB visual web pack. I added a > hiperlink which action event has the following code: > > currentSession=(HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false); > currentSession.invalidate(); > > Everything seem to be working fine, even the > SessionBean.destroy() method is called.... anyway > the > Session is still active. I notice this because I > redirect to another page after that and this page is > correctly displayed (the login screen should appear > instead). > > I think this is something about order-preprocesing > issues cause the logout link is placed inside a jsp > fragment... > > Therefore, I tried sending to a normal JSP which has > the only following code: > > <% > HttpSession currentSession; > HttpServletResponse resp; > currentSession = (HttpSession) > FacesContext.getCurrentInstance().getExternalContext().getSession(false); > resp = (HttpServletResponse) > FacesContext.getCurrentInstance().getExternalContext().getResponse(); > currentSession.invalidate(); > try { > response.sendRedirect("Menu.jsp"); > } catch (IOException e) { > e.printStackTrace(); > } > %> > (of course I added the necessary imports...) > > But it isn't working either. > > Does somebody knows how to correctly logout from > tomcat authentication when using JSF? > > thanks in advance. > > > > > Comparte video en la ventana de tus mensajes > (y también tus fotos de Flickr). > Usa el nuevo Yahoo! Messenger versión Beta. > http://mx.beta.messenger.yahoo.com/ > > --------------------------------------------------------------------- > To start a new topic, e-mail: > users@tomcat.apache.org > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To start a new topic, e-mail: > users@tomcat.apache.org > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ____________________________________________________________________________________ ¡Capacidad ilimitada de almacenamiento en tu correo! No te preocupes más por el espacio de tu cuenta con Correo Yahoo!: http://correo.yahoo.com.mx/ --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]