public function StoreLogin(\model\PersistentLoginModel $credentials) { CookieStorage::Set(self::$cookieName, $credentials->user, $credentials->expiration); CookieStorage::Set(self::$cookiePassword, $credentials->passPhrase, $credentials->expiration); }
public static function Set(\string $message) { $number_of_days = 30; $date_of_expiry = time() + 60 * 60 * 24 * $number_of_days; CookieStorage::Set(self::$locationName, $message, $date_of_expiry); }