//* DEBUG: */ echo __LINE__."!!!<br />";
destroy_user_session();
- // Remove array elements to prevent errors
- unset($GLOBALS['userid']);
+ // Reset userid
+ $GLOBALS['userid'] = 0;
}
} else {
// Cookie data is invalid!
//* DEBUG: */ echo __LINE__."***<br />";
- // Remove array elements to prevent errors
- unset($GLOBALS['userid']);
+ // Reset userid
+ $GLOBALS['userid'] = 0;
}
// Free memory
//* DEBUG: */ echo __LINE__."///<br />";
destroy_user_session();
- // Remove array elements to prevent errors
- unset($GLOBALS['userid']);
+ // Reset userid
+ $GLOBALS['userid'] = 0;
}
// Cache status