Subversion-Projekte lars-tiefland.ci

Revision

Revision 68 | Revision 2049 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 68 Revision 1257
Zeile 207... Zeile 207...
207
			$key = $this->_key_prefix.$session_id;
207
			$key = $this->_key_prefix.$session_id;
Zeile 208... Zeile 208...
208
 
208
 
209
			$this->_memcached->replace($this->_lock_key, time(), 300);
209
			$this->_memcached->replace($this->_lock_key, time(), 300);
210
			if ($this->_fingerprint !== ($fingerprint = md5($session_data)))
210
			if ($this->_fingerprint !== ($fingerprint = md5($session_data)))
211
			{
-
 
212
				if (
211
			{
213
					$this->_memcached->replace($key, $session_data, $this->_config['expiration'])
-
 
214
					OR ($this->_memcached->getResultCode() === Memcached::RES_NOTFOUND && $this->_memcached->set($key, $session_data, $this->_config['expiration']))
-
 
215
				)
212
				if ($this->_memcached->set($key, $session_data, $this->_config['expiration']))
216
				{
213
				{
217
					$this->_fingerprint = $fingerprint;
214
					$this->_fingerprint = $fingerprint;
218
					return $this->_success;
215
					return $this->_success;
Zeile 219... Zeile 216...
219
				}
216
				}
220
 
217
 
221
				return $this->_fail();
-
 
222
			}
218
				return $this->_fail();
223
 
219
			}
224
			if (
220
			elseif (
225
				$this->_memcached->touch($key, $this->_config['expiration'])
221
				$this->_memcached->touch($key, $this->_config['expiration'])
226
				OR ($this->_memcached->getResultCode() === Memcached::RES_NOTFOUND && $this->_memcached->set($key, $session_data, $this->_config['expiration']))
222
				OR ($this->_memcached->getResultCode() === Memcached::RES_NOTFOUND && $this->_memcached->set($key, $session_data, $this->_config['expiration']))
227
			)
223
			)