tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serge Fonville <serge.fonvi...@gmail.com>
Subject Re: "remember me" authentication?
Date Thu, 26 Feb 2009 22:13:27 GMT
>
> Does Tomcat provide default support in some way to implement a 'remember
> me' feature for form based authentication? This should not be dependent on a
> user's browser remembering the username/password, but by a checkbox you can
> check/clear on the logon jsp.
>

if you google for 'jsp cookie' you will find
http://www.roseindia.net/jsp/jspcookies.shtml

If so, where do I find it? If not, how can I implement it? My guess is that
> I store the user credentials in a cookie, but how do I get every jsp/servlet
> in my application that requires authentication to automatically retrieve
> this and skip authentication? Sounds like a lot of overhead, unless Tomcat
> can take care of it.
>

In any jsp page you can use include directives and inline java (scriptlet).
Alternatively you can implement java beans to perform the authentication
decisions.

Any web application that uses authentication needs to perform these steps at
every request (page view)

Hope this helps.

Regards,

Serge Fonville

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message