Re: Setting Cookies
| From: | Casey Allen Shobe | Date: | Mon, 10 Dec 2001 19:10:14 +0000 |
| Subject: | Re: Setting Cookies | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77221@lists.php.net to get a copy of this message | ||
On Monday 10 December 2001 14:39, Steve Osborne wrote:
> 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?
Yes, or do what I do and redirect to a dologin page that sets the cookie and
autorefreshes after one second to the real page, which requires the cookie to
be set already.
--
Casey Allen Shobe
cshobe@softhome.net