Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 9fd5992

Browse files
author
Sergii Kovalenko
committed
MAGETWO-70671: [Staging] Can't navigate on the Preview page because of broken links
1 parent 8785abe commit 9fd5992

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/Magento/Framework/Session/SessionManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,17 +202,17 @@ public function start()
202202
/**
203203
* Renew session cookie to prolong session
204204
*
205-
* @param null|string $cookieValue
205+
* @param null|string $sid If we have session id we need to use it instead of old cookie value
206206
* @return $this
207207
*/
208-
private function renewCookie($cookieValue)
208+
private function renewCookie($sid)
209209
{
210210
if (!$this->getCookieLifetime()) {
211211
return $this;
212212
}
213213
//When we renew cookie, we should aware, that any other session client do not
214214
//change cookie too
215-
$cookieValue = $cookieValue ?: $this->cookieManager->getCookie($this->getName());
215+
$cookieValue = $sid ?: $this->cookieManager->getCookie($this->getName());
216216
if ($cookieValue) {
217217
$metadata = $this->cookieMetadataFactory->createPublicCookieMetadata();
218218
$metadata->setPath($this->sessionConfig->getCookiePath());

0 commit comments

Comments
 (0)