Thanks for the prompt response but I'm looking for someone to explain some security issues and the right method of storing the cookies first before I check them at login time.
Tony
Main Topics
Browse All TopicsHi,
Users can use my site without logging in but users that do login will have access to more features on the site (your basic scenario).
Now, I would like users to enter their username and password to login and there will also be a checkbox to "remember me". The only thing is, it's not too secure that way cause if you type in "javascript:alert(document
What I don't understand is: how do web sites remember your login information without displaying your password? is it encrypted or have anything to do with session variables?
I'm using ASP (vbscript) with a mySQL database, well, I'm using Access until I have all the tables setup and then will convert to mySQL.
Basically, my end result is the login system like Experts-Exchange.
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi
Websites like EE can remember your login information, using cookies. To write the cookies you can use
response.cookies("cookiena
response.cookies("cookiena
to fetch the values at any time in future you can use
request.cookies("cookienam
To store password in neat and clean format as cookies is insecure, therefore you should encrypt it before saving and decrypt it after retrieving
Have a look at these links (they have discussions and solutions useful to you in these situation) :
http://beta.experts-exchan
http://www.experts-exchang
http://www.webmasterworld.
http://www.15seconds.com/h
http://www.15seconds.com/i
With regards to security:
The only way to secure it 'properly' would be to store the information in a database on a server with SSL (https). If you store the information in a cookie, or in an unsecured database on the server, when the information is passed across the internet it will basically go as plain text! (even though it will appear to be asterixed out).
So the short (and sweet) answer is that without some form of certification/security - you'll always be passing the information as plain text.
If you want to read more information about IIS security methods, here's a fairly simple article:
http://msdn.microsoft.com/
Take a look at your "Cookies". you will find something like:
Cookie-name:
Cookie:YOURCOMPUTERNAME@ex
Cookie-content:
EELOGIN
YOURUSERNAME:XXHy8MRELwdIM
experts-exchange.com/
1536
579117440
34567610
1169827440
29567610
*
Look at the expire date of the cookie. That day you will need to log-in again.
Delete the cookie and then you wil need to re-login inmediately.
The password, if stored, (maybe then characters after YOURUSERNAME:) is obviously encrypted.
This is how RR knows who you are (well, not exactly you, but your computer)
Basically what happens is that your password will be stored in database somewhere. When you login to Experts Exchange, it checks that the username you've supplied matches the password held against that username in the database. If it does match, it puts a cookie on your machine saying effectively, user bloodtrain=true.
So each time you come back it can see that you're username is bloodtrain, and that the you've already supplied a suitable password.
It's straightforward to do.
But it still comes back to the point that the only way to do this 'securely' is with SSL or suitable additional security.
I don't know, this is all getting to confusing. :)
You know what, either way, I don't need the highest security on my site. It's not like I'm storing creditcard numbers. So, basically, I guess all I need is to just encrypt the password a little so atleast the average person can't figure it out.
Now, I'm a total novice at this stuff. From what I read on the net, there is basically 2 ways to encrypt: using regular ASP or making a COM (which I don't even know what it is but looks confusing)! :) Does anyone have a link to tutorial that beginners like me will understand? I don't know anything about hex numbers and blah blah blah! :)
Thanks
btw: sorry that I don't understand! :(
http://www.aspobjects.com/
Hope you find something useful
Business Accounts
Answer for Membership
by: ryancysPosted on 2003-06-26 at 22:27:05ID: 8810843
Try:
sp") p") ' already logged in
if request.cookies("Login") <> "success" then
response.redirect("index.a
else
response.redirect("main.as
end if
in your page of checking login, you can try add:
request.cookies("Login") = "success"
and in log out form, add:
request.cookies("Login") = ""