Re: Setting Cookies
| From: | Valentin V. Petruchek | Date: | Mon, 10 Dec 2001 18:52:00 +0000 |
| Subject: | Re: Setting Cookies | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77220@lists.php.net to get a copy of this message | ||
Not necessary on the top, but before any html begins
Zliy Pes, http://zliypes.com.ua
----- Original Message -----
From: "Steve Osborne" <s.osborne@chinookmultimedia.com>
To: "PHP-General (E-mail)" <php-general@lists.php.net>
Sent: Monday, December 10, 2001 9:39 PM
Subject: [PHP] Setting Cookies
> I am attempting to use the SetCookie command. I receive the following
> error:
>
> Warning: Cannot add header information - headers already sent by
> ....(reference to current page)...
>
> At this point I have authenticated the user, and am trying to set the
cookie
> before redirecting them to the registered users section. Should I be
> setting the cookie on the top of the page that I am sending them to?
>
> Any comments or suggestions would be greatly appreciated.
>
> Steve Osborne
> s.osborne@chinookmultimedia.com
>
>
>
> --
> 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
>
>