ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilCookie.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
10 class ilCookie
11 {
12  private $name = '';
13  private $value = '';
14  private $expire = 0;
15  private $path = '';
16  private $domain = '';
17  private $secure = false;
18  private $http_only = false;
19 
20  public function __construct($a_name)
21  {
22  $this->setName($a_name);
23  }
24 
25  public function setName($a_name)
26  {
27  $this->name = $a_name;
28  }
29 
34  public function getName()
35  {
36  return $this->name;
37  }
38 
44  public function setValue($a_value)
45  {
46  $this->value = $a_value;
47  }
48 
49  public function getValue()
50  {
51  return $this->value;
52  }
53 
54  public function setExpire($a_expire)
55  {
56  $this->expire = (int) $a_expire;
57  }
58 
59  public function getExpire()
60  {
61  return $this->expire;
62  }
63 
64  public function setPath($a_path)
65  {
66  $this->path = $a_path;
67  }
68 
69  public function getPath()
70  {
71  return $this->path;
72  }
73 
74  public function setDomain($a_domain)
75  {
76  $this->domain = $a_domain;
77  }
78 
79  public function getDomain()
80  {
81  return $this->domain;
82  }
83 
84  public function setSecure($a_status)
85  {
86  $this->secure = (bool) $a_status;
87  }
88 
89  public function isSecure()
90  {
91  return $this->secure;
92  }
93 
94  public function setHttpOnly($a_http_only)
95  {
96  $this->http_only = $a_http_only;
97  }
98 
99  public function isHttpOnly()
100  {
101  return $this->http_only;
102  }
103 }
104 ?>
setPath($a_path)
setHttpOnly($a_http_only)
__construct($a_name)
setSecure($a_status)
getName()
Get name.
setDomain($a_domain)
setExpire($a_expire)
Representation of an HTTP cookie.
setValue($a_value)
Currently no restriction on cookie length.
setName($a_name)