Originally posted by: Zugzwang152
test to see whether one of your $_SESSION variables exists, or do something like:
if(!session_name()) //i THINK this will work
link to documentation.
Originally posted by: AFB
Originally posted by: Zugzwang152
test to see whether one of your $_SESSION variables exists, or do something like:
if(!session_name()) //i THINK this will work
link to documentation.
WTF didn't I thinkof that, lol. For some reason I thought I would have to call session_register first, well I would and I did.
Thanks![]()
If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered(), and session_unregister().
You can also create a session variable by simply setting the appropriate member of the $_SESSION or $HTTP_SESSION_VARS (PHP < 4.1.0) array.
Originally posted by: Zugzwang152
Originally posted by: AFB
Originally posted by: Zugzwang152
test to see whether one of your $_SESSION variables exists, or do something like:
if(!session_name()) //i THINK this will work
link to documentation.
WTF didn't I thinkof that, lol. For some reason I thought I would have to call session_register first, well I would and I did.
Thanks![]()
If you're using $_SESSION, then session_register() is unecessary, because it is called by PHP automatically when you add a new variable to $_SESSION. For example:
$_SESSION["php"] = "roxoros"; //implicitly calls session_register()
If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered(), and session_unregister().
You can also create a session variable by simply setting the appropriate member of the $_SESSION or $HTTP_SESSION_VARS (PHP < 4.1.0) array.
source