ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
CookieFactoryImpl.php
Go to the documentation of this file.
1 <?php
2 
3 namespace ILIAS\HTTP\Cookies;
4 
6 
18 {
19 
23  public function create($name, $value = null)
24  {
25  return new CookieWrapper(SetCookie::create($name, $value));
26  }
27 
28 
32  public function createRememberedForLongTime($name, $value = null)
33  {
35  }
36 
37 
41  public function createExpired($name)
42  {
44  }
45 
46 
50  public function fromSetCookieString($string)
51  {
52  return new CookieWrapper(SetCookie::fromSetCookieString($string));
53  }
54 }
createExpired($name)
Creates an already expired cookie.This is useful if the cookie should be deleted at the client end...
createRememberedForLongTime($name, $value=null)
Create a new cookie with the given name and value which expires in 5 years.The unique cookie name...
static create($name, $value=null)
Definition: SetCookie.php:173
create($name, $value=null)
Create a new cookie with the given name and value.The unique cookie name. Cookie value.Cookie
Class CookieJarWrapperTest.
Definition: Cookie.php:3
static createRememberedForever($name, $value=null)
Definition: SetCookie.php:178
fromSetCookieString($string)
Creates the cookie from the cookie string.Cookie string.Cookie