I have configured Tomcat (4.1) to use form-based (j_security_check)
user authentication against user/role tables in a JDBCRealm and
everything works as expected. However, after registering a new user and
adding them to this database programmatically, I then need to
automatically log them in, skipping the log-in page on this one
occasion. How best to do this? Thanks.
Danno - 12 Jul 2006 19:35 GMT
> I have configured Tomcat (4.1) to use form-based (j_security_check)
> user authentication against user/role tables in a JDBCRealm and
> everything works as expected. However, after registering a new user and
> adding them to this database programmatically, I then need to
> automatically log them in, skipping the log-in page on this one
> occasion. How best to do this? Thanks.
Hahaha. I am sticking around for this answer. You can do this with a
JAAS Realm (never tried on tomcat) and cookies, but I don't know about
using the JDBC Realm.
Danno - 12 Jul 2006 19:35 GMT
> I have configured Tomcat (4.1) to use form-based (j_security_check)
> user authentication against user/role tables in a JDBCRealm and
> everything works as expected. However, after registering a new user and
> adding them to this database programmatically, I then need to
> automatically log them in, skipping the log-in page on this one
> occasion. How best to do this? Thanks.
Hahaha. I am sticking around for this answer. You can do this with a
JAAS config (never tried on tomcat) and cookies, but I don't know about
using the JDBC Realm.