visit this link
http://www.tapsellferrier.co.uk/Servlets/FAQ/authentication.html
hope this helps
----- Original Message -----
From: "Frank R. Gross" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 28, 2001 4:24 PM
Subject: Pre-Setting Browser-Passwords with JSP?
> Hi there,
>
> Does anybody know if it is possible to pre-set a user/pass in the
> browser for a .htaccess-based "basic auth" restricted area on an
> apache/tomcat webserver using JSP?
>
> Imagine the following scenario: we have an area on an apache webserver
> which is user/pass protected using .htaccess "basic auth". Normally,
> when someone tries to enter the protected area, the browser comes up
> with this well known Log-In window that asks for the user name and the
> password to enter. In some cases it would be nice for user's
> convenience, if he would not have to enter this information each time.
> Especially when he already authenticated himself at another site
> before. He could be forwarded to this protected site from another JSP
> page, which pre-sets the user/pass in the background to let him in
> without being nagged for user infos again.
>
> With PHP it seems to be possible to set and get the user/pass
> information: http://www.php.net/manual/en/features.http-auth.php
>
> Does anybody know a workaround? Maybe someone has a better idea to
> solve this problem.
>
> Any help appreciated, Thank you!
> Regards,
> Frank.
>
> ..................................
> EVOLT Internet Applications GmbH
> Br�ningstrasse 35
> D-61350 Bad Homburg
> Tel (06172)789 70-0
> Fax (06172)789 70-29
> http://www.evolt.de
> ..................................
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets