private function set_cookie_crypt() { $crypt_type = $this->get_config()->cookie->crypt->type; if ($crypt_type) { http_cookie::set_crypt(crypt::get($crypt_type)); } }
public static function set_crypt($crypt_obj = null) { if (is_object($crypt_obj) && $crypt_obj instanceof crypt) { self::$crypt = $crypt_obj; } }