You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by C S <aw...@gmail.com> on 2006/09/20 19:02:56 UTC

HTTP 408 Login timeout

I'm dealing with a problem where if a user hits a secured page and is
forwarded to a login page (using Form Auth).  If the user sits on that login
page for too long, and then try to login they are confronted with a nasty
HTTP 408 error.  I don't know if this behaviour is part of the servlet spec,
but rather then giving the user an error, could they be forwarded to a
welcome page for the app?  Or perhaps to the context's "/"?

Re: HTTP 408 Login timeout

Posted by Jon Wingfield <jo...@mkodo.com>.
If you have a custom error page set up you can trap the 408 response 
code and redirect to an appropriate resource. Works for me :)

Alternatively, you can set up a meta refresh on your login page so you 
never get the 408. Of course, because the refresh has to go to some 
protected page and not back to the login page you lose the exact 
protected resource that the user originally requested. But hey, they 
couldn't have wanted it that badly if the session timed out while 
waiting to login ;)

HTH,

Jon

C S wrote:
> I'm dealing with a problem where if a user hits a secured page and is
> forwarded to a login page (using Form Auth).  If the user sits on that 
> login
> page for too long, and then try to login they are confronted with a nasty
> HTTP 408 error.  I don't know if this behaviour is part of the servlet 
> spec,
> but rather then giving the user an error, could they be forwarded to a
> welcome page for the app?  Or perhaps to the context's "/"?
> 



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org