From 72d21c66149f36c469e11322d0c711255f5829ec Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Fri, 4 May 2012 17:40:07 +0200 Subject: [PATCH] [HttpFoundation][Session] change possible replace() & set() for set only() --- .../Session/Storage/Handler/MemcacheSessionHandler.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php index bc21b5f730..00488fd0d9 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.php @@ -117,11 +117,7 @@ class MemcacheSessionHandler implements \SessionHandlerInterface */ public function write($sessionId, $data) { - if (!$this->memcache->replace($this->prefix.$sessionId, $data, 0, $this->memcacheOptions['expiretime'])) { - return $this->memcache->set($this->prefix.$sessionId, $data, 0, $this->memcacheOptions['expiretime']); - } - - return true; + return $this->memcache->set($this->prefix.$sessionId, $data, 0, $this->memcacheOptions['expiretime']); } /**