Removing unnecessary require_once()
[squirrelmail.git] / include / validate.php
index e12811d44fb46738929d2c45db69961d2edbea3a..aeed3e12709d63ef3f2f387d85be6e1906fbf26d 100644 (file)
@@ -3,13 +3,14 @@
 /**
 * validate.php
 *
-* Copyright (c) 1999-2003 The SquirrelMail Project Team
+* Copyright (c) 1999-2004 The SquirrelMail Project Team
 * Licensed under the GNU GPL. For full terms see the file COPYING.
 *
-* $Id$
+* @version $Id$
+* @package squirrelmail
 */
 
-/* include the mime class before the session start ! otherwise we can't store
+/** include the mime class before the session start ! otherwise we can't store
  * messages with a session_register.
  *
  * From http://www.php.net/manual/en/language.oop.serialization.php:
@@ -50,7 +51,7 @@ if(isset($session_name) && $session_name) {
     ini_set('session.name' , 'SQMSESSID');
 }
 
-session_start();
+sqsession_is_active();
 
 require_once(SM_PATH . 'functions/i18n.php');
 require_once(SM_PATH . 'functions/auth.php');
@@ -103,4 +104,5 @@ if ( $timeZone != SMPREF_NONE && ($timeZone != "")
     && $tzChangeAllowed ) {
     putenv("TZ=".$timeZone);
 }
-?>
+
+?>
\ No newline at end of file