Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.IllegalStateException: Session was invalidated

843841Sep 27 2005
Hi Dear
I am also facing this problem.I am using orion server with struts frame.At Login page i have use HttpSession s = request.getSession(); and then user s.setAttribute("userId",userId); and
s.setAttribute("password",password).When I am trying to get s.getAttribute("userId") on next(mainScreen).Hear I am able to access session attribute.On Next sereen (Inbox)Hear also I am able to get session attribute.But on Last page (MailViewSession)Hear my session is Invilade forcefully.I don't I don't know how can i stop to invilade my session.
I have use this method also
for (Enumeration e = session.getAttributeNames() ; e.hasMoreElements() ;) {
System.out.println(e.nextElement());
}
to know whter my session having that attribute.But some time it show me all data.Some time it show me null value.

If you get some soluation of this problem then please send me soluation on adha.umashankar@gmail.com or you can talk me on MSN Messenger adha_umashankar@hotmail.com

TumoDave
Sr.Soft.Engineer
Dil
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 25 2005
Added on Sep 27 2005
0 comments
361 views