X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fsession.php;h=b3c4dfbd554b8f103a2a79fdeb8c0b8e5ebd5358;hb=89edd713e330fd16e8da1edeadfd5046296ff0d2;hp=af8eb7c050f9aaec5fe282c789c8fdcf6c0cd142;hpb=43885129ac24cee5545a8a5ad51e90aa182fdf46;p=mailer.git diff --git a/inc/session.php b/inc/session.php index af8eb7c050..b3c4dfbd55 100644 --- a/inc/session.php +++ b/inc/session.php @@ -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