You are here

public function MemcacheSessionHandler::write in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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);
}