ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Cookie.php
Go to the documentation of this file.
1<?php
2
4
16interface 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}
if(!array_key_exists('domain', $_REQUEST)) $domain
Definition: resume.php:8
An exception for terminatinating execution or to throw for unit testing.
getHttpOnly()
True if the cookie is http only otherwise false.
rememberForLongTime()
Sets the expiration date to +5 years.
getExpires()
Expiration date as unix timestamp.
withValue($value=null)
Sets the cookie value.
withPath($path=null)
Sets the cookie path.
getValue()
Cookie value.
withDomain($domain=null)
Sets the domain name for the cookie.
getDomain()
Cookie domain.
withHttpOnly($httpOnly=null)
Sets if the cookie is http only.
withSecure($secure=null)
Sets if the cookie is a secure cookie or not.
withExpires($expires=null)
Sets the expiration date of the cookie.
expire()
Expire the cookie.
getMaxAge()
Max age measured in seconds.
withMaxAge($maxAge=null)
Maximal life time of the cookie in seconds.
getSecure()
True if it's secure cookie otherwise false.
__toString()
Returns the string representation of the object.
Class CookieJarWrapperTest.
Definition: Cookie.php:3