Re: PROBLEM WITH SESSIONS
| From: | Steve Keller | Date: | Wed, 07 May 2003 23:13:09 +0000 |
| Subject: | Re: PROBLEM WITH SESSIONS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146756@lists.php.net to get a copy of this message | ||
At 5/7/2003 03:40 PM, Dale wrote:
session_register("name"); $name=$row["firstName"]; $name.=" "; $name.=$row["lastName"];$name and $_SESSION['name'] are *not* the same variable. Declaring a session variable called "name" does not make every instance of the variable $name congruous.
session_register("validUser25"); $validUser=$row["idNum"];In this one you're not even using the same word. You're going from validUser25 to validUser. I suggest reading up a bit more on how sessions actually work. ~Steve-o -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Email: skeller@healthtvchannel.org Web: www.healthtvchannel.org