ILIAS  release_7 Revision v7.30-3-g800a261c036
CookieFactory.php
Go to the documentation of this file.
1<?php
2
3namespace ILIAS\HTTP\Cookies;
4
16{
17
26 public function create(string $name, string $value = null) : Cookie;
27
28
37 public function createRememberedForLongTime(string $name, string $value = null) : Cookie;
38
39
48 public function createExpired(string $name) : Cookie;
49
50
58 public function fromSetCookieString(string $string) : Cookie;
59}
An exception for terminatinating execution or to throw for unit testing.
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:230
Class CookieJarWrapperTest.
Definition: Cookie.php:3