I should have probably added this many months ago when I first found out
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 27 Jul 2003 03:45:25 +0000 (03:45 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 27 Jul 2003 03:45:25 +0000 (03:45 +0000)
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

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5435 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/global.php

index 498700b888d4857c7117e2256ea13543ab2cae20..955c53629b8e8b936098f050f612091ae75ae937 100644 (file)
@@ -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
  * this is executed if you are running PHP 4.0.x.
  * it is run via a require_once directive in validate.php 
 /* convert old-style superglobals to current method
  * this is executed if you are running PHP 4.0.x.
  * it is run via a require_once directive in validate.php