Re: session vs. header
| From: | Jonathan Sharp | Date: | Wed, 30 Oct 2002 18:47:54 +0000 |
| Subject: | Re: session vs. header | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-122087@lists.php.net to get a copy of this message | ||
huge junk mail wrote:
> Can someone tell me why I can't have
>
> $_SESSION['foo'] = 'content of foo';
>
> following by
>
> header('Location: http://www.mysite.com');
>
> Someone from www.php.net told me that it can confuse
> browser (http://bugs.php.net/19991). But, still I
> can't the idea why it can happen. Does register
> session means sending a 'header: location' too?
no, sessions never send location headers, they may send cookies but not
location.
-js
>
> Thanks.
>
> =====
> Regards,
>
> mahara
>
> __________________________________________________
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
> http://webhosting.yahoo.com/
>