On Thu, 13 Mar 2003 19:55:04 +1100, Peter Goggin wrote about "[PHP] Re
user Identifying" what the universal translator turned into this:

>My site uses shopping baskets to record what the user wants to but. These
>records are stored in a database against the user.   This requires the user
>to register and log onto the site. Is it possible to avoid this by the use
>of cookies or some other method?

To retain a users identity, when the users ain't on your site, you've got
no way around cookies.

Be aware that the cookie should only (for security reasons) contain the
user's ID, not his/her login or password.

When the user returns to the site, you'll need to look for the cookie, and
then compare the userID to the database, and provide auto-login by
retrieving login and password from the database.

I don't use cookies myself, so can't help beyond that.

Rene

-- 
Rene Brehmer

This message was written on 100% recycled spam.

Come see! My brand new site is now online!
http://www.metalbunny.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to