Results 1 to 2 of 2
Thread: Cookie Syntax
Jan 14, 2003, 12:47 #1
i could never work session so i just used cookies like:
I didnt put a time because i wanted it to act like a session - when browser is closed - cookie expires
but this doesnt seem to work now
i cant echo $clanname
what is the complete syntax for a cookie
ive seen somethings about urls in cookies - what do they do?
Thanks for your help-Ice
Jan 15, 2003, 08:17 #2
- Join Date
- Aug 2001
- the cosmos
- 0 Post(s)
- 0 Thread(s)
I dont think you are going about it the right way. You will need to set an expiration date for a cookie and it will be really hard to guess when your user will close that browser.
I would suggest you use sessions, instead of trying to make a cookie act like one.
Anyway, to answer your question, a cookie takes six parameters. The first three are the most important:
setcookie([variable name], [value of variable], [unix timestamp])