note 40937 added to function.setcookie

From: Date: Tue, 23 Mar 2004 20:47:41 +0000
Subject: note 40937 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-67077@lists.php.net to get a copy of this message
This limitation is mentiones in the <a href=”http://wp.netscape.com/newsref/std/cookie_spec.html”> Netscape HTTP Cookies Preliminary Specification </a> above but I thought it might save someone some time if it was posted here. (I wasted almost a day about it, Serves me right for not RTFMing ...) There are limitations on the number of cookies that a client can store at any one time. This is a specification of the minimum number of cookies that a client should be prepared to receive and store. * 300 total cookies * 4 kilobytes per cookie, where the name and the OPAQUE_STRING combine to form the 4 kilobyte limit. * 20 cookies per server or domain. (note that completely specified hosts and domains are treated as separate entities and have a 20 cookie limitation for each, not combined) Servers should not expect clients to be able to exceed these limits. When the 300 cookie limit or the 20 cookie per server limit is exceeded, clients should delete the least recently used cookie. When a cookie larger than 4 kilobytes is encountered the cookie should be trimmed to fit, but the name should remain intact as long as it is less than 4 kilobytes. ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40937 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40937&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40937&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67077) next »