Re: where is cookie limitation on php ?
| From: | Jim Lucas | Date: | Fri, 21 Mar 2003 17:38:01 +0000 |
| Subject: | Re: where is cookie limitation on php ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140617@lists.php.net to get a copy of this message | ||
Look up the specs on the limitation of cookies and you will then know the
limitation of php when it comes to cookies.
Jim
----- Original Message -----
From: "Hatem Ben" <reflex_news@yahoo.fr>
To: <php-general@lists.php.net>
Sent: Friday, March 21, 2003 9:10 AM
Subject: [PHP] where is cookie limitation on php ?
> Greetings all,
>
> Can someone tell me where is the limitation on the number/size of cookies
> that could be used ?
>
> Assuming we have :
> <?php
> $table = array("a","b","c","d");
> $table = array_pad($table, 20,"e");
> while (list($key, $value) = each ($table)) {
> setcookie( "DX_A[$key]", $value );
> }
> setcookie( "DX_B", "test 1" );
> setcookie( "DX_C", "test 2" );
> setcookie( "DX_D", "test 3" );
> setcookie( "DX_E", "test 4" );
> print_r($_COOKIE);
> ?>
>
> This is what php return :
> Array
> (
> [DX_A] => Array
> (
> [4] => e
> [5] => e
> [6] => e
> [7] => e
> [8] => e
> [9] => e
> [10] => e
> [11] => e
> [12] => e
> [13] => e
> [14] => e
> [15] => e
> [16] => e
> [17] => e
> [18] => e
> [19] => e
> )
>
> [DX_B] => test 1
> [DX_C] => test 2
> [DX_D] => test 3
> [DX_E] => test 4
> )
>
> The first values are truncated !
>
> Thanks,
> Hatem
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>