Beispiel #1
0
 public static function getToken()
 {
     $csrf = Session::get('_csrf');
     if (!$csrf) {
         $csrf = md5(mt_rand(1000, 9999));
         Session::set('_csrf', $csrf);
     }
     return $csrf;
 }
Beispiel #2
0
 public function withInput()
 {
     \Sutil\Session\Session::set('_input_data', $this->_input);
     return $this;
 }