Date: 12/16/00
- Next message: Jonathan Sharp: "[PHP] Re-compiling PHP?"
- Previous message: Floyd Baker: "Re: [PHP] passing with get?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
I am trying to implement sessions to authenticate users to my site. I
have register_globals = Off; to force developers on the machine to use
$HTTP_GET_VARS and $HTTP_POST_VARS
But once I do a session register, I can't seem to access the variables
later. I have looked in the sess file in /tmp and the session doesn't
seem to be stored.
I have tried the following :
session_start();
session_register("user_level");
session_register("user_email_address");
session_register("user_first_name");
session_register("user_last_name");
session_register("user_name");
session_register("auth");
return("YES");
Then in the function that called this, I do
printf("User_level = %s<br>", $user_level);
printf("User_name = %s<br>", $user_name);
I also tried
printf("User_level = %s<br>", $HTTP_SESSION_VARS["user_level"]);
printf("User_name = %s<br>", $HTTP_SESSION_VARS["user_name"]);
neither of these found anything... Is there any way to do this without
turning global_vars on ?
Thanks,
-- - A Complete Luser E-mail: acompleteluser <email protected>-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Jonathan Sharp: "[PHP] Re-compiling PHP?"
- Previous message: Floyd Baker: "Re: [PHP] passing with get?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

