ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
CookieJar.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\HTTP\Cookies;
20
21use Psr\Http\Message\ResponseInterface;
22
40interface CookieJar
41{
49 public function has(string $name): bool;
50
51
58 public function get(string $name): ?Cookie;
59
60
66 public function getAll(): array;
67
68
76 public function with(Cookie $setCookie): CookieJar;
77
78
86 public function without(string $name): CookieJar;
87
88
94 public function renderIntoResponseHeader(ResponseInterface $response): ResponseInterface;
95}
with(Cookie $setCookie)
Creates a new cookie jar with the given cookie.
getAll()
Fetches all cookies from the current jar.
renderIntoResponseHeader(ResponseInterface $response)
Render CookieJar into a Response.
has(string $name)
Checks if a cookie with the given name is in the jar.
without(string $name)
Creates a cookie jar without the specified cookie.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Cookie.php:19
$response
Definition: xapitoken.php:93