ILIAS  release_8 Revision v8.24
CookieFactory.php
Go to the documentation of this file.
1<?php
2
3namespace ILIAS\HTTP\Cookies;
4
5/******************************************************************************
6 *
7 * This file is part of ILIAS, a powerful learning management system.
8 *
9 * ILIAS is licensed with the GPL-3.0, you should have received a copy
10 * of said license along with the source code.
11 *
12 * If this is not the case or you just want to try ILIAS, you'll find
13 * us at:
14 * https://www.ilias.de
15 * https://github.com/ILIAS-eLearning
16 *
17 *****************************************************************************/
29{
36 public function create(string $name, string $value = null): Cookie;
37
38
45 public function createRememberedForLongTime(string $name, string $value = null): Cookie;
46
47
54 public function createExpired(string $name): Cookie;
55
56
62 public function fromSetCookieString(string $string): Cookie;
63}
fromSetCookieString(string $string)
Creates the cookie from the cookie string.
createExpired(string $name)
Creates an already expired cookie.
createRememberedForLongTime(string $name, string $value=null)
Create a new cookie with the given name and value which expires in 5 years.
create(string $name, string $value=null)
Create a new cookie with the given name and value.
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