Hi,
I have problem with reading cookies.
I'd like to save fields of my form into cookies and use them by
another page.
I save cookies:
foreach ($_POST as $idx =$value)
{
setcookie($idx, $value);
}
I check them in FireFox, all cookes are set OK.
Then I'd like to read them using code:
foreach( $_COOKIE as $key =$var )
{
print $key . ": " .$var . "<br>";
}
I save about 60 cookies, unfortunatley only some cookies are read!
I have no idea what's wrong.
Please help me to solve my problem.
Thanks in advance for a help!
Regards,
Jacek
I have problem with reading cookies.
I'd like to save fields of my form into cookies and use them by
another page.
I save cookies:
foreach ($_POST as $idx =$value)
{
setcookie($idx, $value);
}
I check them in FireFox, all cookes are set OK.
Then I'd like to read them using code:
foreach( $_COOKIE as $key =$var )
{
print $key . ": " .$var . "<br>";
}
I save about 60 cookies, unfortunatley only some cookies are read!
I have no idea what's wrong.
Please help me to solve my problem.
Thanks in advance for a help!
Regards,
Jacek
Comment