Ejemplo n.º 1
0
 public function nonce()
 {
     if (!isset($this->_nonce)) {
         $this->_nonce = \Coast\str_random();
     }
     return $this->_nonce;
 }
Ejemplo n.º 2
0
 public function regenerate()
 {
     $_SESSION['__Coast\\Csrf']['token'] = \Coast\str_random();
     return $this;
 }