Re: session vs. header
| From: | 1LT John W. Holmes | Date: | Wed, 30 Oct 2002 17:17:06 +0000 |
| Subject: | Re: session vs. header | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-122057@lists.php.net to get a copy of this message | ||
> 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?
What is your exact code? I do this all the time and don't have any trouble
with it.
---John Holmes...