// Start the session
@session_start();
+global $PHPSESSID;
$PHPSESSID = @session_id();
// Store language code in cookie
$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