Re: How large string in cookie?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Gustav Wiberg" <gustav@xxxxxxxxxxxxxx> wrote in message 
news:008f01c5b4c8$31024b60$0300a8c0@xxxxxxxxxxxxxx
> How large can a string be in a cookie? (the value-parameter)

If you need (or want) a lot of data stored in cookies, I recommend doing the 
following:
store a single cookie with a unique id (something like 
"CookieID=ajhciuy978kjn"), then use this CookieID as a key into a database 
table, where you can store unlimited data for each browser.  I've done this, 
and it works very nicely.

Just, be careful about preventing cookie theft, if anything important is 
stored.

DanB

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux