Hi. I have some functionality in my site which allows a member to login and logout of their account. When the user clicks the logout link the following code is executed to destroy the session
I have stepped through in debug and this code executes fine. However when an attempt is made to display the resulting page I get the following error
When I take the following code out of the resulting jsp the error does not happen.
SEVERE: Error creating HttpSession due response is commited to client. You can use the CreateSessionInterceptor or create the HttpSession from your action before the result is rendered to the client: getAttribute: Session already invalidated
java.lang.IllegalStateException: getAttribute: Session already invalidated
Please guide me . As I didnot understand the answer you gave to Vik
Really Appreciate the help.
Note: I am also using Token Session interceptor in my code and getting this error while loggin out on call of getServletRequest().getSession().invalidate();
Joined: Apr 08, 2011
Hi David understood what you said.
Thanks Now error is not getting displayed becuase of removal of <s:token/> from result page