Posted by Jeff on 01/04/07 17:09
Hey
I'm developing a web site using php 5.2.0
Is it possible to store more than one value in a cookie or must I create one
cookie for each value I want stored?
Lets say I want to store these values in a cookie:
username = "noob"
password = "easy"
ip_address = "127.0.0.1"
How should I do it?.. I mean should I use setcookie for each value or...
maybe I can store these values in the session, and then again store the
session in the cookie?
After a user has logged in I want the cookie to hold info about the user. So
after restarting the computer or restarting the internet browser the web
site should recognize the user so he don't need to login again. The use must
login again when the cookie expire or after the user has logout.
Any suggestions???
Jeff
[Back to original message]
|