Invalidating a session in jsp

programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums My login Servlet is using a jdbc database (which works successfully).

Only problem is when user clicks logout from page, the logout Servlet runs =.

You can try invalidating the session as well, but it isn't necessary.

Are you using just the existence of a session to determine whether a user is logged in?

Logging out consists of removing that session variable.So if i get this right, i need to create a session manually? If so would it be something like: How does this address the issue of the Parameter() retrieving values from a previous logon. Because that is how i get my username and password.That's not something even close to what Paul suggested.I've attached an example that shows a command button that logs out by navigating to a JSP that then does the session.invalidate() and then redirects to another page. Illegal State Exception: get Attribute: Session already invalidated at org.apache.catalina.session.Standard Attribute(Standard at org.apache.catalina.session. Standard Session Attribute(Standard Session at com.icesoft.faces.webapp.xmlhttp.

Search for invalidating a session in jsp:

invalidating a session in jsp-74invalidating a session in jsp-5invalidating a session in jsp-17invalidating a session in jsp-18

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “invalidating a session in jsp”