Cookie and Db User Authentication

W

webmaster

This is a question that has probably been answered before on the
newsgroup but probably in fragments. This is what I would like to do,
and I only have a very vague idea where to find the answer. Directions
would be useful.

1. Users arrive at the site. If they are registered they log in. If not
they sign up for registration.

2. The authentication information such as username and password are
held in a db, for security reasons the password should not be passed in
plain text.

3. When the user is logged in the session information should be held in
a cookie so that if the user returns in a short period of time they
will automatically be logged in. The cookie will also be used to
personalise certain parts of the site.

thanks in advance
 
W

webmaster

Larry,

Thanks for your very quick response. The first of your suggestions
seems the perfect solution to my needs.

Thanks again
 
P

Patrice

And for #3 you could store in the cookie a uniqueidentifier that changes
regularly so that you don't compromise the password client side...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,373
Latest member
Desiree036

Latest Threads

Top