-
1. Re: request.isRequestedSessionIdValid does not work
kjkoster Oct 20, 2008 1:11 PM (in response to kenzhang)Dear kenzhang,
I am just guessing here, but could it be caused by two cluster nodes each trying to invalidate the session?
Kees Jan -
2. Re: request.isRequestedSessionIdValid does not work
kenzhang Oct 20, 2008 11:43 PM (in response to kenzhang)Hi Kees,
Thanks for your reply. But the situation that 'two cluster node each invalidate the session' should not happen in my case.
We do use JBoss cluster, but we enforce that session will be bound to one cluster node for ever.
I have another guess (though somewhat absurd) that: session and request may not always bound together, and the session used insession.invalidate
is not the request session, and hence, not the session used inrequest.isRequestedSessionIdValid()
-
3. Re: request.isRequestedSessionIdValid does not work
kjkoster Oct 21, 2008 4:11 AM (in response to kenzhang)Dear kenzhang,
Why not work around this issue as follows:try { session.invalidate(); } catch (IllegalStateException e) { // yeah, yeah. }
The effect is that after this statement block the session is invalidated, regardless of whether it was before the block. -
4. Re: request.isRequestedSessionIdValid does not work
kenzhang Oct 21, 2008 8:43 AM (in response to kenzhang)Hi Kess,
Thanks for the suggestion.
Yes of course that's one good work around, and I think most people will use that work around to get their work go on.
But I just wonder the root cause......
there should be something/implementation about request and session that we do not know lying there and worth our discussion and thinking.
Thanks all the same.