Example #1
0
 public function __construct()
 {
     if (!$this->_init) {
         $this->_init = true;
         if (($this->_codes = Session::getActiveCsrf()) == '') {
             $this->_codes[] = sha1(session_id() . microtime(1));
             Session::setActiveCsrf($this->_codes);
         }
     }
 }