note 83529 added to function.setcookie
| From: | rongzedong at osu1 dot php dot net | Date: | Fri, 30 May 2008 13:47:40 +0000 |
| Subject: | note 83529 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140001@lists.php.net to get a copy of this message | ||
<?php
for ($i=1;$i<100;$i++)
{
setcookie("sss[".$i."]",$i);
}
echo '<pre>';
print_r($_COOKIE);
echo '</pre>';
echo count($_COOKIE['sss']);
?>
Array
(
[sss] => Array
(
[50] => 50
[51] => 51
[52] => 52
[53] => 53
[54] => 54
[55] => 55
[56] => 56
[57] => 57
[58] => 58
[59] => 59
[60] => 60
[61] => 61
[62] => 62
[63] => 63
[64] => 64
[65] => 65
[66] => 66
[67] => 67
[68] => 68
[69] => 69
[70] => 70
[71] => 71
[72] => 72
[73] => 73
[74] => 74
[75] => 75
[76] => 76
[77] => 77
[78] => 78
[79] => 79
[80] => 80
[81] => 81
[82] => 82
[83] => 83
[84] => 84
[85] => 85
[86] => 86
[87] => 87
[88] => 88
[89] => 89
[90] => 90
[91] => 91
[92] => 92
[93] => 93
[94] => 94
[95] => 95
[96] => 96
[97] => 97
[98] => 98
[99] => 99
)
)
50
THE cookie has limit of array items ?
by http://www.oo8h.com/
----
Server IP: 221.194.139.225
Probable Submitter: 221.201.46.38
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/83529
Del: integrated -- https://master.php.net/note/delete/83529/integrated
Del: useless -- https://master.php.net/note/delete/83529/useless
Del: bad code -- https://master.php.net/note/delete/83529/bad+code
Del: spam -- https://master.php.net/note/delete/83529/spam
Del: non-english -- https://master.php.net/note/delete/83529/non-english
Del: in docs -- https://master.php.net/note/delete/83529/in+docs
Del: other reasons-- https://master.php.net/note/delete/83529
Reject -- https://master.php.net/note/reject/83529
Search -- https://master.php.net/manage/user-notes.php