How to end the session in spring 3 - Stack Overflow
think the common problem when using @SessionAttributes
is after you invalidate your current session, Spring MVC attach the model attributes back into the new session -- hence causing the impression it never invalidates
You can check the value of JSESSIONID before & after you invalidate it. You will get a brand new JSESSIONID, yet previous model attributes are attached straight into the new session
I found myself having to do this to wipe a model attribute of name "counter" from session after invalidating it
Read full article from How to end the session in spring 3 - Stack Overflow
No comments:
Post a Comment