public function __construct($sessionIdentifier = null, $storageIdentifier = null, $lastActivityTimestamp = null, array $tags = [])
{
if ($sessionIdentifier !== null) {
if ($storageIdentifier === null || $lastActivityTimestamp === null) {
throw new \InvalidArgumentException('Session requires a storage identifier and last activity timestamp for remote sessions.', 1354045988);
}
$this->sessionIdentifier = $sessionIdentifier;
$this->storageIdentifier = $storageIdentifier;
$this->lastActivityTimestamp = $lastActivityTimestamp;
$this->started = true;
$this->remote = true;
$this->tags = $tags;
}
$this->now = time();
}