示例#1
0
文件: Csp.php 项目: jacksleight/coast
 public function nonce()
 {
     if (!isset($this->_nonce)) {
         $this->_nonce = \Coast\str_random();
     }
     return $this->_nonce;
 }
示例#2
0
 public function regenerate()
 {
     $_SESSION['__Coast\\Csrf']['token'] = \Coast\str_random();
     return $this;
 }