RE: [PHP] sesson tutorials

From: Date: Mon, 14 Oct 2002 02:50:15 +0000
Subject: RE: [PHP] sesson tutorials
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119833@lists.php.net to get a copy of this message
> howdy > > does any one know where i can view an uptodate session tutorial? so far I > have not found any that are up todate. Sessions are a breeze. Just call session_start() on any page you need to access the session. You then have a variable called $_SESSION, which is an array. You can use it as any other array. To save the value "John" to the session as a "Name", you'd use $_SESSION['name'] = 'John'; Now, any page you have session_start() on will have the variable $_SESSION['name'] available to it. That's the whole tutorial Use $_SESSION as you would any other variable and it'll be available to any page that has session_start on it. ---John Holmes...

« previous php.general (#119833) next »