24 public function __construct(\SessionHandlerInterface $handler)
26 if ($handler instanceof \SessionUpdateTimestampHandlerInterface) {
27 throw new \LogicException(sprintf(
'"%s" is already an instance of "SessionUpdateTimestampHandlerInterface", you cannot wrap it with "%s".', \get_class($handler), self::class));
30 $this->handler = $handler;
36 public function open($savePath, $sessionName)
38 parent::open($savePath, $sessionName);
40 return $this->handler->open($savePath, $sessionName);
46 protected function doRead($sessionId)
48 return $this->handler->read($sessionId);
56 return $this->
write($sessionId, $data);
62 protected function doWrite($sessionId, $data)
64 return $this->handler->write($sessionId, $data);
73 $destroyed = parent::destroy($sessionId);
85 return $this->handler->destroy($sessionId);
93 return $this->handler->close();
99 public function gc($maxlifetime)
101 return $this->handler->gc($maxlifetime);