tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Winslow <martinge...@yahoo.com>
Subject Re: Automatic Realm login?
Date Mon, 04 Jul 2005 16:02:09 GMT
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 <martingerxt@yahoo.com> 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:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
> 



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


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message