Help!
I used:
Next page that checks it's valid:
I checked the session file but it only has this in it:
!user|
no value
I checked the PHP site (http://php.ca/manual/en/function.session-register.php) and it said:
"If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered() and session_unregister(). "
What does it mean?
Could anyone please tell me why can't I give the session variable any value?
I appreciate any help.
Thank you
I used:
PHP:
session_start();
session_register("user");
$HTTP_SESSION_VARS["user"] = "jane";
Next page that checks it's valid:
PHP:
if (!isset($HTTP_SESSION_VARS["user"]))
//but the variable is always not set!
I checked the session file but it only has this in it:
!user|
no value
I checked the PHP site (http://php.ca/manual/en/function.session-register.php) and it said:
"If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered() and session_unregister(). "
What does it mean?
Could anyone please tell me why can't I give the session variable any value?
I appreciate any help.
Thank you