|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
multiple cookies
hi i have a login system for my site and it sets 1 cookie which i used to validate people across all the pages on the site. At the top of every page there is a welcome note: eg. hello:<username> would it be better for me to set 2 cookies or is there a way or storing multiple variables in 1 cookie?
|
|
#3
|
||||
|
||||
|
RE: multiple cookies
|
|
#4
|
|||
|
|||
|
RE: multiple cookies
You can store multiple variables in 1 cookie simply bij multiple setcookie() commands.
When you have a Windows machine running do not forget to add the path parameter to each command like this: I was wrestling with this one for a couple of days. Of course you can also use arrays for the cookie. Refer also to: http://www.php.net/manual/nl/function.setcookie.php ) |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Programming Theory > multiple cookies |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|