english/libraries/joomla/session/storage/memcache.php
/**
	 * Write session data to the SessionHandler backend.
	 *
	 * @param   string   $id			The session identifier.
	 * @param   string   $session_data  The session data.
	 *
	 * @return boolean  True on success, false otherwise.
	 */
Write session data to the SessionHandler backend.
@param   string   $id                        The session identifier.
@param   string   $session_data  The session data.

@return boolean  True on success, false otherwise.
Write session data to the SessionHandler backend . @param string $id The session identifier . @param string $session_data The session data . @return boolean True on success false otherwise .
public function write($id, $session_data)
	{
		$sess_id = 'sess_'.$id;
		if ($this->_db->get($sess_id.'_expire')) {
			$this->_db->replace($sess_id.'_expire', time(), 0);
		} else {
			$this->_db->set($sess_id.'_expire', time(), 0);
		}
		if ($this->_db->get($sess_id)) {
			$this->_db->replace($sess_id, $session_data, $this->_compress);
		} else {
			$this->_db->set($sess_id, $session_data, $this->_compress);
		}
		return;
	}
public function write ( $ id , $ session_data ) { $ sess_id = 'sess_' . $ id ; if ( $ this -> _db -> get ( $ sess_id . '_expire' ) ) { $ this -> _db -> replace ( $ sess_id . '_expire' , time ( ) , 0 ) ; } else { $ this -> _db -> set ( $ sess_id . '_expire' , time ( ) , 0 ) ; } if ( $ this -> _db -> get ( $ sess_id ) ) { $ this -> _db -> replace ( $ sess_id , $ session_data , $ this -> _compress ) ; } else { $ this -> _db -> set ( $ sess_id , $ session_data , $ this -> _compress ) ; } return ; }
Write session data to the SessionHandler backend.
Write session data to the SessionHandler backend .