You are here

public function MemcacheSessionHandler::write in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Storage/Handler/MemcacheSessionHandler.php \Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcacheSessionHandler::write()

File

vendor/symfony/http-foundation/Session/Storage/Handler/MemcacheSessionHandler.php, line 88

Class

MemcacheSessionHandler
MemcacheSessionHandler.

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Handler

Code

public function write($sessionId, $data) {
  return $this->memcache
    ->set($this->prefix . $sessionId, $data, 0, time() + $this->ttl);
}