RE: [PHP] Setcookie
| From: | Galvin, Max | Date: | Fri, 31 Aug 2001 16:17:41 +0000 |
| Subject: | RE: [PHP] Setcookie | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-65520@lists.php.net to get a copy of this message | ||
Header redirect isn't vaiable in this situation.
> ----------
> From: Jason Radley[SMTP:php@streamlineinternet.com]
> Sent: 31 August 2001 17:00
> To: Galvin, Max
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] Setcookie
>
> <?php
> $alertthem = "Testing your browser for cookies.";
>
> if(empty($check)){
> $page = "$PHP_SELF?check=1";
> header("Location: $page");
> setcookie("testcookie","1");
> }
> else{
> if(empty($testcookie)){
> $alertthem = "<H3>Please enable cookies.<br>You need cookies
> to shop this
> site</h3>";
> }
> else{
> header("Location: somepage.php3");
> }
> }
> ?>
>
> -----Original Message-----
> From: Galvin, Max [mailto:m.galvin@centralservices.co.uk]
> Sent: Friday, August 31, 2001 9:45 AM
> To: 'php-general@lists.php.net'
> Subject: [PHP] Setcookie
>
>
> Is there any way to see whether or not the cookie setting has actually
> worked without going to another page? I suspect there isn't but I'd like
> confirmation ;)
>
> Cheers
>
> Max
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>