Пример #1
0
 public function save()
 {
     $this->bucket->data = $this->_getBucketData();
     $this->bucket->expires = $this->expirationTime;
     $this->bucket->save();
     if ($this->useCookie && !headers_sent()) {
         setcookie($this->name, $this->id, time() + $this->expirationTime, $this->cookiePath, $this->cookieDomain, $this->cookieSecure, $this->cookieHttpOnly);
     }
 }
Пример #2
0
 protected function _endProcessing()
 {
     if ($this->_bucket) {
         $this->formData->lastAction = microtime(true);
         $this->_bucket->data = $this->formData;
         $this->_bucket->save();
     }
     $this->_deInit();
 }