Re: is this syntax correct?

From: Date: Thu, 05 Apr 2001 11:38:38 +0000
Subject: Re: is this syntax correct?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-47241@lists.php.net to get a copy of this message
session_unregister must take the name of the variable to kill. So: session_unregister("test"); does the job. -- Plutarck Should be working on something... ...but forgot what it was. ""Jacky@lilst"" <jacky@activelifestyle.com> wrote in message news:008701c0be0f$21dd1de0$6400a8c0@activelifestyle.com... > I have setup session here > <?php > global $test; > $test = "foo"; > session_register("test"); > ?> > > and newbie as I am, still don't know how to delete value of this, I actually > using this right at the bottom of the page where I want session value to be > deleted. > <?php > session_unset(); > ?> > Did not work, of course, so what do I do? > Jack > jacky@activelifestyle.com > "There is nothing more rewarding than reaching the goal you set for > yourself" > ----- Original Message ----- > From: Wade Halsey <whalsey@btech.co.za> > To: Jacky@lilst <jacky@activelifestyle.com> > Sent: Monday, April 02, 2001 3:48 AM > Subject: Re: [PHP] is this syntax correct? > > > > do you have > > session_start(); > > at the top of the next page? > > > > ----- Original Message ----- > > From: Jacky@lilst <jacky@activelifestyle.com> > > To: <php-general@lists.php.net> > > Sent: Monday, April 02, 2001 10:43 PM > > Subject: Re: [PHP] is this syntax correct? > > > > > > > I also tried this syntax: > > > <?php > > > global $test; > > > $test = "foo"; > > > session_register("test"); > > > ?> > > > > > > and it still not work as when I go to next page, and try echo $test, > > nothing > > > come up. > > > Jack > > > jacky@activelifestyle.com > > > "There is nothing more rewarding than reaching the goal you set for > > > yourself" > > > ----- Original Message ----- > > > From: Joseph Bannon <joseph@iwebsitesoftware.com> > > > To: Jacky@lilst <jacky@activelifestyle.com> > > > Sent: Monday, April 02, 2001 3:44 AM > > > Subject: RE: [PHP] is this syntax correct? > > > > > > > > > > > So what is the right way to do? > > > > > > > > > > > > I resent my email to the list. I've done mostly DB work, so I need to > > know > > > > what those functions do. > > > > > > > > J > > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#47241) next »