Reputation: 840
I want to differentiate between:
Is there a way I can identify these two in a new HTTPServeletRequest
?
Upvotes: 1
Views: 44
Reputation: 240966
You can implement SessionListener
and manage to get new session and old session mapping,
However to decide where to redirect upon new login (as you commented)
you should store referrer
header in session
For example:
after session has been destroyed
user gets redirected to login page
get the referrer header put it in session and on successful login read it from session and redirect there
Upvotes: 1