Problem grabbing value of session

From: Date: Tue, 16 Apr 2002 18:40:51 +0000
Subject: Problem grabbing value of session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93235@lists.php.net to get a copy of this message
I am in a function called Login2 in which I call the following: session_start(); session_register("valid_user"); session_register("privs"); valid_user contain a name - Jim privs contains a number -1 Right after I call those I try a is_registered and it showed that these registered correctly. I removed that code and added a call to another function: redirectinternal(); That function is below: function redirectinternal () { global $valid_user,$privs; echo "Login good!"; echo "<BR>".$valid_user." - ".$privs.$temp; } Now, I can't seem to get those values to print to the screen. I added a session_start before the echo and I just can't get my values out...what am I missing? Jeff

« previous php.general (#93235) next »