ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Cookie.php
Go to the documentation of this file.
1 <?php
2 
4 
16 interface Cookie
17 {
18 
24  public function getName();
25 
26 
32  public function getValue();
33 
34 
40  public function getExpires();
41 
42 
49  public function getMaxAge();
50 
51 
57  public function getPath();
58 
59 
65  public function getDomain();
66 
67 
73  public function getSecure();
74 
75 
81  public function getHttpOnly();
82 
83 
91  public function withValue($value = null);
92 
93 
105  public function withExpires($expires = null);
106 
107 
113  public function rememberForLongTime();
114 
115 
122  public function expire();
123 
124 
133  public function withMaxAge($maxAge = null);
134 
135 
143  public function withPath($path = null);
144 
145 
153  public function withDomain($domain = null);
154 
155 
163  public function withSecure($secure = null);
164 
165 
173  public function withHttpOnly($httpOnly = null);
174 
175 
181  public function __toString();
182 }
withValue($value=null)
Sets the cookie value.
$path
Definition: aliased.php:25
__toString()
Returns the string representation of the object.
expire()
Expire the cookie.
Class CookieJarWrapperTest.
Definition: Cookie.php:3
getDomain()
Cookie domain.
withHttpOnly($httpOnly=null)
Sets if the cookie is http only.
rememberForLongTime()
Sets the expiration date to +5 years.
getName()
Cookie name.
getHttpOnly()
True if the cookie is http only otherwise false.
getSecure()
True if it&#39;s secure cookie otherwise false.
getValue()
Cookie value.
getExpires()
Expiration date as unix timestamp.
withSecure($secure=null)
Sets if the cookie is a secure cookie or not.
getPath()
Cookie path.
getMaxAge()
Max age measured in seconds.
withPath($path=null)
Sets the cookie path.
withMaxAge($maxAge=null)
Maximal life time of the cookie in seconds.
withExpires($expires=null)
Sets the expiration date of the cookie.
if(!array_key_exists('domain', $_REQUEST)) $domain
Definition: resume.php:8
withDomain($domain=null)
Sets the domain name for the cookie.