On Fri, 2010-07-09 at 15:43 -0400, Gary wrote: > "Richard Quadling" <rquadling@xxxxxxxxx> wrote in message > news:AANLkTilBMYedd8paKy9DWGN0q7t6KeM4ZZuTu_49Uag4@xxxxxxxxxxxxxxxxx > > On 9 July 2010 16:42, Gary <gpaul@xxxxxxxxxxxxxxxx> 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