Re: Login In script quesitons
| From: | Ashley Sheridan | Date: | Fri, 09 Jul 2010 19:50:35 +0000 |
| Subject: | Re: Login In script quesitons | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306798@lists.php.net to get a copy of this message | ||
On Fri, 2010-07-09 at 15:43 -0400, Gary wrote:
> "Richard Quadling" <rquadling@gmail.com> wrote in message
>
> news:AANLkTilBMYedd8paKy9DWGN0q7t6KeM4ZZuTu_49Uag4@mail.gmail.com...
> > On 9 July 2010 16:42, Gary <gpaul@paulgdesigns.com> wrote:
> > [snip]
> >
> > Take a look at https://code.google.com/p/loginsystem-rd/
> >
>
> Richard
>
> Thank you for your quick reply and the link. Since I see you are one of the
> creators, thank you for that as well.
>
> I am getting the following error and I'm not sure how to correct it.
>
> Warning: Cannot modify header information - headers already sent by (output
> started at /home/content/45/6359745/html/login/include/loginGlobals.php:281)
> in /home/content/45/6359745/html/login/include/form_token.php on line 15
>
> Warning: Cannot modify header information - headers already sent by (output
> started at /home/content/45/6359745/html/login/include/loginGlobals.php:281)
> in /home/content/45/6359745/html/login/include/form_token.php on line 22
>
> Line 15 is: setcookie("token", "", time()-42000);
> Line 22 is :if (setcookie("token", $_SESSION["token"], time()+86400)) {
>
> loginGlobals stops at line 278
>
> Again, thank you for all your help.
>
> gary
>
>
>
>
>
>
> __________ Information from ESET Smart Security, version of virus signature database 5266
> (20100709) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>
>
>
My guess is that you've put the login PHP code after some HTML in that
page? If you output any content at all (even a blank space) it will
output the default headers. What you need to do is have any logic that
includes a header() call before any output.
Thanks,
Ash
http://www.ashleysheridan.co.uk