OK, I found something that seems to work.  In my login
page I check for certain conditions and if they exist
I execute the following:

response.sendRedirect("j_security_check?j_username=user&j_password=password");

I guess much simpler than trying to mess with session,
realm, authenticator code.


--- Mark Winslow <[EMAIL PROTECTED]> wrote:

> Is there a way to programmatically login a user to a
> realm?  I want to do this for two reasons:
> 
> 1. Save login state for users.
> 2. Automatically login after a user creates an
> account.
> 
> I've seen some discussion of a setRemoteUser method
> in
> one of the Tomcat classes, but I can't figure out
> how
> it works and if it would work for my purpose.
> 
> Thanks.
> 
> 
> 
>               
> ____________________________________________________
> 
> Yahoo! Sports 
> Rekindle the Rivalries. Sign up for Fantasy Football
> 
> http://football.fantasysports.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



                
__________________________________ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to