Re: Deleting session vars

From: Date: Tue, 31 Oct 2000 11:00:02 +0000
Subject: Re: Deleting session vars
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-22912@lists.php.net to get a copy of this message
> > session_start(); > > session_register ("a"); > > echo $name; > > $a = $name; > It seems as though session_start(); not only sets the value fpr $a but for $name, too. When I leave the Session_start out, $name gets the value from the form "name" submited to this site, when I start the session, the form "name is ignored" and the old value is restored. So it seems like $a has become an Alias to $name or the other way around... But I can't find a way to start the session to get the value $a and making $name get the value from the form...

« previous php.general (#22912) next »