27 if (empty($this->cfg->value)) {
28 $this->cfg->value = $this->
get(
true);
32 if ($this->cfg->autoSave)
42 $this->cfg->setA($prm);
65 return array_key_exists($this->
getRawName(), $_COOKIE);
74 public function get($fromBrowser=
false) {
75 if (!$this->saved && !$fromBrowser)
76 return $this->cfg->value;
77 else if ($this->
check())
88 public function set($value) {
89 if ($value != $this->cfg->value)
92 $this->cfg->value = $value;
98 public function del() {
100 $this->cfg->expire = -1;
115 $this->saved = setcookie(
118 $this->cfg->expire+time(),
132 return $this->cfg->prefix.$this->cfg->name;
doNotSave($doNotSave=null)