ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
CookieJar.php
Go to the documentation of this file.
1 <?php
2 
19 namespace ILIAS\HTTP\Cookies;
20 
22 
40 interface 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 }
$response
Definition: xapitoken.php:93
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Cookie.php:19
getAll()
Fetches all cookies from the current jar.
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.
renderIntoResponseHeader(ResponseInterface $response)
Render CookieJar into a Response.
with(Cookie $setCookie)
Creates a new cookie jar with the given cookie.