Invalidating session in struts2 carey mulligan dating 2016
This example contains three links login, logout and profile.
The struts 2 framework passes the instance of org.apache.struts2.dispatcher. If the end user clicks on the logout link, he will not be able to access the profile page.
After getting logged in, you may go to the profile page.
If you click on the profile link, you will be forwarded to Now write your name for name and admin for the password.
Now, you are successfully logged in Now, click on the profile.
if (session instanceof org.apache.struts2.dispatcher. Session Map) @Rosanero4Ever removing user from the session is your ultimate goal which can be best achieved by remove method beside i am agree what Dave has said in his post.