Re: Setcookie()
| From: | Per Jessen | Date: | Sat, 11 Oct 2008 16:02:30 +0000 |
| Subject: | Re: Setcookie() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281715@lists.php.net to get a copy of this message | ||
Ben Stones wrote:
> I'm using cookies for my website script and upon users logging in a
> cookie is set. Problem for me is that the cookie doesn't work due to
> headers already sent. Is there anyway of fixing this because, there is
> no possible way of adding setcookie() to the top of the PHP file when
> the cookie is holding the username from the POSTed form.
This must be a self imposed restriction on your side, coz' otherwise I
see no problem.
/Per Jessen, Zürich