File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark ""Remember Me" function using Realm?" Watch ""Remember Me" function using Realm?" New topic
Author

"Remember Me" function using Realm?

Kah Tang
Ranch Hand

Joined: Sep 10, 2007
Posts: 58
Does anyone know of a proper way of implementing a "Remember Me" or autologin function with the j_security_check?

We have an application that uses a fully in JSP implemented login, that is going to be reimplemented with the more cleaner Realm based authentication and authorization module in Tomcat. The problem is that the current solution also has a "Remember Me" function and I have no idea on how to do this properly. I have found some answers on doing this with the Valve mechanism, but isn't there a nicer way of doing this?
Kah Tang
Ranch Hand

Joined: Sep 10, 2007
Posts: 58
After months (well, weeks actually) of research I just gave up and implemented an open source project called SecurityFilter (http://securityfilter.sourceforge.net/). It provides pretty much the same functionality as the default servlet specification for security, but has the remember me function built in. It also provides security on application level, instead of container level.
[ May 28, 2008: Message edited by: Kah Tang ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "Remember Me" function using Realm?