ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
CookieFactory.php
Go to the documentation of this file.
1 <?php
2 
19 namespace ILIAS\HTTP\Cookies;
20 
31 interface CookieFactory
32 {
39  public function create(string $name, ?string $value = null): Cookie;
40 
41 
48  public function createRememberedForLongTime(string $name, ?string $value = null): Cookie;
49 
50 
57  public function createExpired(string $name): Cookie;
58 
59 
65  public function fromSetCookieString(string $string): Cookie;
66 }
fromSetCookieString(string $string)
Creates the cookie from the cookie string.
createExpired(string $name)
Creates an already expired cookie.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Cookie.php:19
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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.