Location: PHPKode > scripts > Security_Token > security_token/Validator/SessionToken.php
<?php
/**
 * $Id: SessionToken.php 1191 2006-12-21 07:36:03Z matthieu $
 */
if (!class_exists('Validator_SessionToken')) {
    if (!defined('__CLASS_PATH__')) {
        define('__CLASS_PATH__', realpath(dirname(__FILE__) . '/../'));
    }
    require_once __CLASS_PATH__ . '/Autoload.php';
    /**
     * validate a token stored in session
     * @author Matthieu MARY <hide@address.com>
     * @license http://opensource.org/licenses/gpl-license.php GPL
     * @package validation
     */
    class Validator_SessionToken extends Validator_Token
    {
        /**
         * constructor
         * @access public
         * @return void
         * @param string $tokenToValidate : the token to control
         */
        public function __construct($tokenToValidate)
        {
            parent :: __construct($tokenToValidate, $_SESSION);
        }
    }
}
Return current item: Security_Token