Greetings, 
    I'm developing a website using JSP. I invalidate a session after a user is logged out.
    An example of typical navigation :
    HomePage -> Login -> Logout->HomePage
 
    In my HomePage, I'll checked whether a student is logged in (obtain student object from session)
and enable some links (e.g: View Particulars).
    if (session.getValue("Student") != null) {
        blahblahblah..
   }
 
 
    However, problem occurs when I logging out and access homepage again. I got the
"IllegalStateException".  I found that such error will occur if an attempt is made to access session
data after the session has been invalidated. In my logout page, it has the following code:
 
    session.invalidate();
    session = request.getSession(true);
 
 
    I'm not sure what's wrong with my code, any help?
 
 
===
regards,
June
 

Reply via email to