note 25803 added to function.session-is-registered
| From: | %nospam%mileriam-network at gmx dot net | Date: | Mon, 07 Oct 2002 10:03:07 +0000 |
| Subject: | note 25803 added to function.session-is-registered | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37734@lists.php.net to get a copy of this message | ||
Hello :-)
i read a lot information about sessions in php but i still dont know why the follow code doesnt
workx :(
if the login page was successfully, i must set a global var, to check if logged in or not.
// If Login OK, then ->
// Set Session Name
session_name("session_id");
// Start Session
session_start();
// Set Session var "loggedin" to KarmeLoginOK
$HTTP_SESSION_VARS["loggedin"] = "KarmaLoginOK";
// Redirect to "Secure Area"
Header("Location: manager.php?".SID);
it works, but when i logged in, the variable is a emtpystr..... there is nothing.. what can i do ??
Ciao, Mileriam
--
http://www.php.net/manual/en/function.session-is-registered.php
http://master.php.net/manage/user-notes.php?action=edit+25803
http://master.php.net/manage/user-notes.php?action=delete+25803
http://master.php.net/manage/user-notes.php?action=reject+25803