Re: correct session format?

From: Date: Sun, 22 Jun 2003 06:39:50 +0000
Subject: Re: correct session format?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-152429@lists.php.net to get a copy of this message
So what is the diffirent between : ////////// session_start (); $_SESSION['eventid'] = 'arma2'; /////////// and ///////////// session_start (); session_register('arama2'); /////////// Regards Nabil "Thomas Seifert" <thomas.seifert@myphorum.de> wrote in message news:20030621165437.165cd1b8.thomas.seifert@myphorum.de... > yeah its the right way. > though I don't know what you'r trying to do with > echo "<P> $_SESSION"; > > > Thomas > On Sat, 21 Jun 2003 09:22:39 -0500 jayfitz@bayou.com (Jay Fitzgerald) wrote: > > > is this the correct way to register variables via a session? > > > > [code] > > session_start (); > > $_SESSION['eventid'] = 'arma2'; > > > > print_r ($_SESSION); > > echo "<P> $_SESSION"; > > [/code] > > > > > > [result] > > Array ( [eventid] => arma2 ) > > > > Array > > [/result] > > > > I apologize for the numerous questions, but I am trying to learn...If > > anyone would like to help off-list, my ICQ is 38823829 > > > > Jay > > > >

« previous php.general (#152429) next »