coder247
coder247

Reputation: 2943

session.invalidate() IllegalStateException

I'm trying to invalidate 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.

Upvotes: 1

Views: 2391

Answers (1)

sinha
sinha

Reputation: 588

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

Upvotes: 1

Related Questions