RE: [PHP] PHP Sessions?

From: Date: Wed, 02 Mar 2005 21:14:22 +0000
Subject: RE: [PHP] PHP Sessions?
Groups: php.general 
Request: Send a blank email to php-general+get-209851@lists.php.net to get a copy of this message
rory walsh <mailto:rorywalsh@ear.ie> 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.

« previous php.general (#209851) next »