public function set($name, $value = null, $namespace = '')
	{
		if ($this->_state !== self::STATE_ACTIVE) {
			throw new LibSessionsException("Session isn't active!\n");
		}

		$namespace = empty($namespace) ? $this->_namespace : $namespace;

		if (is_null($value)) {
			unset($_SESSION[$namespace][$name]);
		} else {
			$_SESSION[$namespace][$name] = $value;
		}

		return $this;
	}
public function set($name, $value = null, $namespace = '')
	{
		if ($this->_state !== self::STATE_ACTIVE) {
			throw new LibSessionsException("Session isn't active!\n");
		}

		$namespace = empty($namespace) ? $this->_namespace : $namespace;

		if (is_null($value)) {
			unset($_SESSION[$namespace][$name]);
		} else {
			$_SESSION[$namespace][$name] = $value;
		}

		return $this;
	}
public function set ( $ name , $ value = null , $ namespace = '' ) { if ( $ this -> _state !== self :: STATE_ACTIVE ) { throw new LibSessionsException ( "Session isn't active!\n" ) ; } $ namespace = empty ( $ namespace ) ? $ this -> _namespace : $ namespace ; if ( is_null ( $ value ) ) { unset ( $ _SESSION [ $ namespace ] [ $ name ] ) ; } else { $ _SESSION [ $ namespace ] [ $ name ] = $ value ; } return $ this ; }
Set data into the session store

@access public
@param  string $name  		Name of a variable
@param  mixed  $value 		Value of a variable
@return mixed  Old value of a variable
Set data into the session store