Browse Source

I should have probably added this many months ago when I first found out
about the $_SESSION/$HTTP_SESSION_VAR not being available until a session
was explicitly started. 99% of the time, this shouldn't be needed, but
this function checks for an active session, and starts one if there isn't
an active one. This should fix the following references for the $_ vars.

Tested, and doesn't seem to break anything

jangliss 22 years ago
parent
commit
94a2124bd0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      functions/global.php

+ 2 - 0
functions/global.php

@@ -29,6 +29,8 @@ if(isset($session_name) && $session_name) {
  */
  */
 ini_set('magic_quotes_runtime','0');
 ini_set('magic_quotes_runtime','0');
 
 
+sqsession_is_active();
+
 /* convert old-style superglobals to current method
 /* convert old-style superglobals to current method
  * this is executed if you are running PHP 4.0.x.
  * this is executed if you are running PHP 4.0.x.
  * it is run via a require_once directive in validate.php 
  * it is run via a require_once directive in validate.php