You are here

public function MemcachedSessionHandler::write in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Session/Storage/Handler/MemcachedSessionHandler.php, line 94

Class

MemcachedSessionHandler
MemcachedSessionHandler.

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Handler

Code

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