RE: PHP Sessions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



rory walsh <mailto:rorywalsh@xxxxxx>
    on Wednesday, March 02, 2005 11:19 AM said:

> <?php
> if($_POST["username"]=="rory"){//if user logs in as rory start session
> session_start();
> header("Cache-control: private");
> $_SESSION['loggedin'] = "yes";
> }

Put session_start(); at the *very* beginning of your script. See if that
helps.



Chris.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux