Announcement Announcement Module
Collapse
No announcement yet.
closing session from an external application Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • closing session from an external application

    Hi!

    My name is Jorge. I've implemented a Web application using Spring MVC. The Web application is integrated in a system that has a desktop user interface. I would like to allow users to close Web application's sessions from the destkop GUI.

    I tried implementing a non very elegant solution: invoke httpsession's invalidate but it breaks sometimes when the session being invalidated is used within a running http request. It throws an IllegalStateException at DispatcherServlet when it is trying to invoke render (specifically at WebUtil.getSessionAttribute) because it is trying to access a session attribute and the session is already invalid.

    So my question is: is there any way to kick a user from its session from a non-http-request thread without having conflicts with running http requests? Or at least a conflict that I can manage .

    Thanks and regards,

    Jorge
Working...
X