Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logout problem

 
vijayakumar durai
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my application i provide link for logout.if user clicking the logout .i am invalidating the session in logout.jsp and redirect to index.jsp

i am not able to set the value in session

can anybody tell how display message (successfully logout) to user in index.jsp and remove the message is there any other way to set and remove the message to user
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i am not able to set the value in session

What value are you trying to set?


can anybody tell how display message (successfully logout) to user in index.jsp and remove the message is there any other way to set and remove the message to user

Not sure what you are trying to do here. I would guess the sensible thing to sdo would be to redirect the user to a logout page with this message and a link to click back to the login page?
 
vijayakumar durai
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
after invalidating session i am setting the value session in successfully logout its giving error is there any other way to set the value to display to user?
 
Akhilesh Trivedi
Ranch Hand
Posts: 1599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What we normally do is
1. set the value at successful login-validation
2. Check it all the time (possibly on every page) for the value to be in session
3. Remove/invalidate session during logout.


Originally posted by vijayakumar durai:
...after invalidating session i am setting the value session in successfully logout ...


if you have invalidated the session what are you trying set again and why?
 
vijayakumar durai
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have to display success fully logout to the user.
 
Akhilesh Trivedi
Ranch Hand
Posts: 1599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you trying to set error message in session after invalidating it?


if you have invalidated the session what are you trying set again...

http://faq.javaranch.com/java/TellTheDetails
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic