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
* @version $Id: Ethna_Plugin_Csrf_Session.php 483 2007-10-30 14:56:00Z cocoitiban $
// {{{ 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 Thu, 08 May 2008 00:15:06 +0900 by phpDocumentor 1.4.2