You are here: Re: [PHP] Re: How large string in cookie? « PHP « IT news, forums, messages
Re: [PHP] Re: How large string in cookie?

Posted by Brent Baisley on 09/09/05 18:11

I'm pretty sure the maximum size of a cookie is just under 4K. That
would include variable names and their values.

But if you are getting close to the 4k limit, you probably should
rethink your setup. As DanB said, store the info on the server,
either in a database or in a session.


On Sep 9, 2005, at 10:37 AM, Dan Baker wrote:

> "Gustav Wiberg" <gustav@varupiraten.se> wrote in message
> news:008f01c5b4c8$31024b60$0300a8c0@BLACKSHADOW...
>
>> 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
>
>
>

--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация