Nette\Http\SessionSection::remove PHP Метод

remove() публичный Метод

Cancels the current session section.
public remove ( ) : void
Результат void
    public function remove()
    {
        $this->start();
        $this->data = NULL;
        $this->meta = NULL;
    }

Usage Example

 /**
  * Closes the window
  * @param  string $location	 
  * @return void
  */
 public function close($location = NULL)
 {
     $this->storage->remove();
     $this->open = FALSE;
     if (!$this->presenter->isAjax()) {
         if (isset($location)) {
             $this->presenter->redirect($location);
         } else {
             $this->presenter->redirect('this');
         }
     }
 }
All Usage Examples Of Nette\Http\SessionSection::remove