ILIAS  release_8 Revision v8.24
CookieJar.php
Go to the documentation of this file.
1<?php
2
3namespace ILIAS\HTTP\Cookies;
4
5use Psr\Http\Message\ResponseInterface;
6
7/******************************************************************************
8 *
9 * This file is part of ILIAS, a powerful learning management system.
10 *
11 * ILIAS is licensed with the GPL-3.0, you should have received a copy
12 * of said license along with the source code.
13 *
14 * If this is not the case or you just want to try ILIAS, you'll find
15 * us at:
16 * https://www.ilias.de
17 * https://github.com/ILIAS-eLearning
18 *
19 *****************************************************************************/
37interface CookieJar
38{
46 public function has(string $name): bool;
47
48
55 public function get(string $name): ?Cookie;
56
57
63 public function getAll(): array;
64
65
73 public function with(Cookie $setCookie): CookieJar;
74
75
83 public function without(string $name): CookieJar;
84
85
91 public function renderIntoResponseHeader(ResponseInterface $response): ResponseInterface;
92}
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.
if($format !==null) $name
Definition: metadata.php:247
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Cookie.php:19
$response