public function write($sessionId, $sessionData)
{
if ($this->logger) {
$this->logger->debug(sprintf('CookieSessionHandler::write sessionId=%s', $sessionId));
}
$expire = $this->lifetime === 0 ? 0 : strtotime('now') + $this->lifetime;
$this->cookie = new Cookie($this->cookieName, serialize(array('expire' => $expire, 'data' => $sessionData)), $expire, $this->path, $this->domain, $this->secure, $this->httpOnly);
return true;
}