Re: [PHP] problem with Header("Location: home.php");

2004-09-10 Thread Chris Shiflett
--- CBharadwaj <[EMAIL PROTECTED]> wrote: > In conection.php I have written. > SESSION_ START(); > > on successful login I am registering a session variable. > SESSION_REGISTER("userId"); Do this instead: session_start(); $_SESSION['userid'] = 'myuser'; > Header("Location: home.ph

Re: [PHP] problem with Header("Location: home.php");

2004-09-09 Thread Andre Dubuc
On Thursday 12 August 2004 07:48 pm, CBharadwaj wrote: > Hello, > > In conection.php I have written. > SESSION_ START(); ^ Get rid of extra space and it should work Hth, Andre > on successful login I am registering a session variable. > SESSION_REGISTER("userId");

Re: [PHP] problem with Header("Location: home.php");

2004-09-09 Thread Paul Waring
> the following error occuring in above line. > Warning: Cannot modify header information - headers already sent by > (output started at E:\PHPMySql scripts\bugtrack\connection.php:3) > in E:\PHPMySql scripts\bugtrack\index.php on line 117 Have you got any space before you output anything to the

[PHP] problem with Header("Location: home.php");

2004-09-09 Thread CBharadwaj
Hello, In conection.php I have written. SESSION_ START(); on successful login I am registering a session variable. SESSION_REGISTER("userId"); on login failure I am redirecting to home page. Header("Location: home.php"); the following error occuring in above line. Warning: Canno