In all probability you are trying ti access the session bean properties without importing/instantiating the session bean,
If you are using the session in you homepage make sure you instantiate(= create) the session, and in later pages keep importing it.
 
Hope this helps
 
- khaitan
----- Original Message -----
From: June Low
Sent: Tuesday, September 28, 1999 2:49 PM
Subject: Session Invalidation - IllegalStateException??!!

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