Reset rewritten, SQL fixed, zeros are now numeric
[mailer.git] / inc / session.php
index af8eb7c050f9aaec5fe282c789c8fdcf6c0cd142..b3c4dfbd554b8f103a2a79fdeb8c0b8e5ebd5358 100644 (file)
@@ -47,6 +47,7 @@ if (($VIEW == 1) && ($_SERVER['PHP_SELF'])) return;
 
 // Start the session
 @session_start();
+global $PHPSESSID;
 $PHPSESSID = @session_id();
 
 // Store language code in cookie
@@ -91,7 +92,7 @@ if (isset($_SESSION['userid'])) {
        $GLOBALS['userid'] = bigintval($_SESSION['userid']);
 
        // Is it valid?
-       if (!IS_LOGGED_IN()) {
+       if (!IS_MEMBER()) {
                // Then destroy the user id
                destroy_user_session();
        } // END - if