Two Laptop Bag*
The moose likes JSP and the fly likes Jsp Timeout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp Timeout" Watch "Jsp Timeout" New topic
Author

Jsp Timeout

Patrick Tsang
Greenhorn

Joined: Aug 31, 2004
Posts: 12
I met a problem which has the same scenario with the one
on http://www.orionsupport.com/1053715234630.resource
(Env: WinXP + J2SE 1.4 + Tomcat 4.1)

"The problem I have found is that if you have security enabled (via security-constraint, login-config, security-role etc in web.xml), and have a short session timeout, any user activity after the timeout expires causes a redirect back to the auth-method (e.g FORM).Once authentication is successful, processing then continues where the user left off however any context objects that were bound to the previous session are lost and the results are unpredictable. I too would like to detect the timeout and redirect to a "proper" login however the presence of security is causing me a problem. Does anybody where I can tap into the logic flow or if there is a class or method that I can extend to do it my way?"

Any input is appreciated.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60975
    
  65

"Wal Studio",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Patrick Tsang
Greenhorn

Joined: Aug 31, 2004
Posts: 12
Sorry for that, I have made the change.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60975
    
  65

Thanks!
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
i think you can do it with auto-refresh. add <welcome-file-list> element in your deployment descriptor.

whenever you request any page of that application and already got session time out, then you will be forwarded to the page you mentioned in <welcome-file-list> element. So, think about auto-refresh after time out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp Timeout