> I have been trying to save a variable using PHP sessions.
> What I find is that while most of the time the variable content is
> and available on the subsequent pages, however there are times that
> variable seems to be there but the contents are not. If I hit the
> refresh a couple of times, it will then work.
> What am I doing wrong??
> Here is the code fragment where the variable is set and kept in
> at the beginning:
> // routine to allow login to the system and authenticate that login
> $adminkey = $row["keychain"];
> print("Keychain: $adminkey<br><hr>");
should be session_register("adminkey");
Is register globals on or off?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php