开发者

session.invalidate() IllegalStateException

开发者 https://www.devze.com 2023-03-07 10:41 出处:网络
I\'m trying to invalidate 开发者_JAVA百科a session. When I call: session.invalidate() it throws java.lang.IllegalStateException: getLastAccessedTime: Session already invalidated

I'm trying to invalidate 开发者_JAVA百科a session. When I call:

session.invalidate()

it throws

java.lang.IllegalStateException: getLastAccessedTime: Session already invalidated

Any idea why? I can see the session and it's values just before the invalidate line.


You can use an HttpSessionListener to understand where and when the Session is timing-out or getting invalidated before you call the invalidate yourself.

0

精彩评论

暂无评论...
验证码 换一张
取 消