Destroys user session during logout?
5 answers
Yes, once you invalidate the session the session id is no longer valid, probably the session cookie will be destroyed as well, so the session will not be deleted (along with all data stored in the session).
To log out (from servlet or JSP page):
<%
HttpSession s = request.getSession();
s.invalidate();
%>
This was the easy part. Now, if you save some important user data in a user cookie, make sure you clear it. The same goes for HTML 5 local storage - it needs to be manually cleaned up.
0
source to share