RE: [PHP] Cookie problem with IE
| From: | Jay Blanchard | Date: | Mon, 21 Nov 2005 16:16:08 +0000 |
| Subject: | RE: [PHP] Cookie problem with IE | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-226207@lists.php.net to get a copy of this message | ||
[snip]
Not sure what you mean. I sent him to this script:
<?php
if( !isset( $_REQUEST['page'] ) ) {
setcookie('VATtest','Cookie has been set.',time()+50000, "/");
echo '<a href="'.$_SERVER['PHP_SELF'].'?page=1">Test
cookie.</a>';
} else if( $_REQUEST['page'] == '1' ) {
if( isset( $_COOKIE['VATtest'] ) ) {
echo $_COOKIE['VATtest'];
} else {
echo 'Cookie NOT set.';
}
}
?>
Which is all I had in entirety. Is this not a "basic cookie?"
[/snip]
Sorry, I should have paid more attention. Is $_REQUEST['page'] correctly set
when (print_r the array...just for giggles)