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