public static function set($key, $data, $type = 'ses')
    {
        $GLOBALS['TSFE']->fe_user->setKey(self::isType($type), $key, serialize($data));
        $GLOBALS['TSFE']->fe_user->storeSessionData();
    }