Source for file Ethna_Plugin_Csrf_Session.php
Documentation is available at Ethna_Plugin_Csrf_Session.php
// vim: foldmethod=marker
* Ethna_Plugin_Csrf_Session.php
* @author Keita Arai <cocoiti@comio.info>
* @license http://www.opensource.org/licenses/bsd-license.php The BSD License
// {{{ Ethna_Plugin_Csrf_Session
* CSRF対策をトークンを用いて対策するためのコード
* @author Keita Arai <cocoiti@comio.info>
/** @var object Ethna_Session セッションオブジェクト */
* Ethna_Plugin_Csrfのコンストラクタ
* @param object Ethna_Controller &$controller コントローラオブジェクト
$this->session =
& $this->controller->getSession();
* トークンをViewとローカルファイルにセットする
$token =
$this->session->get($this->token_name);
$this->session->set($this->token_name, $key);
* @return string トークンIDを返す。
return $this->session->get($this->token_name);
$this->session->remove($this->token_name);
Documentation generated on Fri, 11 Nov 2011 04:00:09 +0900 by phpDocumentor 1.4.3