tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joakim Verona <joa...@verona.se>
Subject how do i recreate the user session after session timeout or server restart?
Date Mon, 27 Nov 2000 14:00:21 GMT
hello,

i have an web-app which uses form login. This works well except when the session times out
or
the server is restarted(due to a software update)

the problem occurs when the user reloads a page from a no longer valid session.
tomcat then redirects the user properly to the form-login page.
only problem, then, is that the user then is redirected to the original page, which relies
on a valid session.

i could of course have the session initialization code in every page, but this is error prone.
is there some more elegant way, perhaps using some form of event handler? (interceptor?)

i think the basic problem is that i cant make the form-login system actually do anything other
than setting the username in the underlying session object.

-- 
Joakim Verona
joakim@verona.se
http://www.verona.se/

Mime
View raw message