I am having a problem with sessions.
Even after the user logs out and logs in with a different name, the login screen shows the name of the previous user. When the user logs in after checking the user name and password I do the following.
Then on every other page I write the following code to check for session.
<% if(request.isRequestedSessionIdValid() )
Not a valid Session
<% } %>
In logout I am using the following code
<% session.invalidate(); %>
Why is this problem?
Secondly I want to know whether this methos of maintaining sessions is the right one or not and if it's not hte right one what's a right way to do it.