/** * Lays down a CSRF state token for this process. * * @return void */ protected function establishCSRFTokenState() { if ($this->state === null) { $this->state = md5(uniqid(mt_rand(), true)); $this->store->set('state', $this->state); } }
/** * @param string $clientId * @param Memcache $memcache */ public function __construct($clientId, $memcache, $sessionId) { $this->memcache = $memcache; $this->sessionId = $sessionId; parent::__construct($clientId); }