| Current Path : /var/www/homesaver/www/bitrix/modules/main/lib/session/handlers/ |
| Current File : /var/www/homesaver/www/bitrix/modules/main/lib/session/handlers/strictsessionhandler.php |
<?php
namespace Bitrix\Main\Session\Handlers;
class StrictSessionHandler extends AbstractSessionHandler
{
/** @var NativeFileSessionHandler */
private $handler;
public function __construct(NativeFileSessionHandler $handler)
{
$this->handler = $handler;
}
#[\ReturnTypeWillChange]
public function gc($maxLifeTime)
{
return $this->handler->gc($maxLifeTime);
}
public function open($savePath, $sessionName): bool
{
return $this->handler->open($savePath, $sessionName);
}
public function updateTimestamp($sessionId, $sessionData): bool
{
return $this->write($sessionId, $sessionData);
}
protected function processRead($sessionId): string
{
return $this->handler->read($sessionId);
}
protected function processWrite($sessionId, $sessionData): bool
{
return $this->handler->write($sessionId, $sessionData);
}
protected function lock($sessionId): bool
{
return true;
}
protected function unlock($sessionId): bool
{
return true;
}
protected function processDestroy($sessionId): bool
{
return $this->handler->destroy($sessionId);
}
public function close(): bool
{
return $this->handler->close();
}
}