Click to See Complete Forum and Search --> : PHP Cookie question


pepper
10-10-2004, 12:53 AM
How do I create a cookie? I am aware of the setcookie method. I am just unclear on how to include multiple variables into one cookie. Values such as sessionID, username and password. I have looked on line but I haven't found a page that explains it.

Thanks

Pepper

Choozo
10-10-2004, 12:55 PM
This page over at PHPBuilder (http://www.phpbuilder.com/manual/function.setcookie.php) may prove helpful (if you haven't been there already?).

Cheers :)

pepper
10-10-2004, 01:50 PM
So what phpbuilder is saying is that I can create an array of variables. For instance, username, password, sessionID. Am I on the right track?

Pepper

Choozo
10-10-2004, 02:01 PM
Yup.