Re: how to login into a website automatically in a java application without typing the username and password manually
- From: Wojtek <nowhere@xxxxx>
- Date: Tue, 24 Apr 2007 13:15:31 GMT
Lew wrote :
Wojtek wrote:zhouqiang94@xxxxxxxxx wrote :There is a website whose first page is for user to login. When user
visit the page and fill in the username and password , he can login
into the website. The website has developed. Now the work need to do
is: develop a java application in which the username and password is
known to login into the weibsite automatically without typing the
username and password manually. How to implement that?
Use a coockie. The user still has to log in the first time, but then set a cookie.
When they visit again, check for the cookie (and its validity), and log them in.
Note though that this is highly in-secure and not recommended practice.
How about a certificate? Is there a way to leverage a PKI such as GPG?
If I have access to your computer, I can steal anything on it. So I can copy any certificate, file, cookie, etc.
I can copy that file to my computer, and now I am you.
You really should be asking the user for something (userid, password, etc) prior to authenticating them.
Unless it is a low security site and it does not matter if someone becomes someone else.
Remember: you are who you log in as.
--
Wojtek :-)
.
- Follow-Ups:
- References:
- how to login into a website automatically in a java application without typing the username and password manually
- From: zhouqiang94
- Re: how to login into a website automatically in a java application without typing the username and password manually
- From: Wojtek
- Re: how to login into a website automatically in a java application without typing the username and password manually
- From: Lew
- how to login into a website automatically in a java application without typing the username and password manually
- Prev by Date: Re: Checking/Storing Login Name and Password for email server.
- Next by Date: Modifying an existing Java app form
- Previous by thread: Re: how to login into a website automatically in a java application without typing the username and password manually
- Next by thread: Re: how to login into a website automatically in a java application without typing the username and password manually
- Index(es):
Relevant Pages
|