Tomcat, Adding Users and Logging In Automatically

Discussion in 'Java' started by koyna, Jul 12, 2006.

  1. koyna

    koyna Guest

    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.
    koyna, Jul 12, 2006
    #1
    1. Advertising

  2. koyna

    Danno Guest

    koyna wrote:
    > 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, Jul 12, 2006
    #2
    1. Advertising

  3. koyna

    Danno Guest

    koyna wrote:
    > 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.
    Danno, Jul 12, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Henry

    automatically logging into a website

    Brian Henry, Apr 29, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    4,279
    Herfried K. Wagner [MVP]
    Apr 29, 2005
  2. koyna
    Replies:
    0
    Views:
    375
    koyna
    Jun 7, 2006
  3. Christoph Haas
    Replies:
    0
    Views:
    431
    Christoph Haas
    Jun 12, 2006
  4. Christoph Haas
    Replies:
    1
    Views:
    441
    Vinay Sajip
    Jun 14, 2006
  5. johnny
    Replies:
    1
    Views:
    620
    Dennis Lee Bieber
    Dec 12, 2006
Loading...

Share This Page