8000 [HttpFoundation][Session] change possible replace() & set() for set o… · symfony/symfony@72d21c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 72d21c6

Browse files
committed
[HttpFoundation][Session] change possible replace() & set() for set only()
1 parent 919604a commit 72d21c6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@ public function read($sessionId)
117117
*/
118118
public function write($sessionId, $data)
119119
{
120-
if (!$this->memcache->replace($this->prefix.$sessionId, $data, 0, $this->memcacheOptions['expiretime'])) {
121-
return $this->memcache->set($this->prefix.$sessionId, $data, 0, $this->memcacheOptions['expiretime']);
122-
}
123-
124-
return true;
120+
return $this->memcache->set($this->prefix.$sessionId, $data, 0, $this->memcacheOptions['expiretime']);
125121
}
126122

127123
/**

0 commit comments

Comments
 (0)
0