Exemplo n.º 1
0
 public function delete($keepBucket = false)
 {
     $this->data = null;
     if ($this->bucket && !$keepBucket) {
         $this->bucket->delete();
     }
     if ($this->useCookie && !headers_sent()) {
         unset($_COOKIE[$this->name]);
         setcookie($this->name, '', time() - 100, $this->cookiePath, $this->cookieDomain, $this->cookieSecure, $this->cookieHttpOnly);
     }
     $this->isNew = true;
     $this->bucket = null;
     $this->id = null;
 }