public static function wrapped_session_forget(&$session_object,$key)
    {
        global $TSUGI_SESSION_OBJECT;
        if ( $session_object === null && isset($TSUGI_SESSION_OBJECT) ) $session_object = $TSUGI_SESSION_OBJECT;
        if ( is_object($session_object) ) {
            $session_object->forget($key);
            return;
        }
        if ( is_array($session_object) ) {
            if ( isset($session_object[$key]) ) unset($session_object[$key]);
            return;
        }
        if ( isset($_SESSION) && isset($_SESSION[$key]) ) unset($_SESSION[$key]);
    }