
January 26th, 2000, 10:44 AM
|
|
Contributing User
|
|
Join Date: Apr 1999
Location: London
Posts: 110
Time spent in forums: 22 m 26 sec
Reputation Power: 0
|
|
try this
SetCookie("SessionId",$cartID,time()+2592000);
the only bit after that is the path and domain and some secure thing (which I'm not sure about), if you want to include more info like the time or whatever if you repeat the SetCookie with different variables in it and sit will make one big cookie for you
eg
$cartID = md5(uniqid(rand()));
$time = mktime();
SetCookie("SessionId",$cartID,time()+2592000);
SetCookie("SessionIdTime",$time,time()+2592000);
will generate this as a cookie...
SessionIdTime
948815550
whatever URL and path/
0
667529984
29327071
381841344
29321036
*
SessionId
735f83820533a26431f2817140b878d0
whatever URL and path/
0
667529984
29327071
382041344
29321036
*
you cvan then call either SessionId or SessionIdTime in your next page
hope it helps
------------------
cheers
|