code: public login logout() throws Exception
  	{
  		if(sessionid == null || sessionid.length() <= 0)
  			throw new Exception("User not logged-in");
  		
  		login logout_obj = new login();
  		logout_obj.set_sessionid(sessionid);
  		
  		login result = login.delete(this, logout_obj);
  		sessionid = null;
  		user_name = null;
  		password = null;
  		return result;
  	}
docs: <pre>
  Use this API to logout from current session.
  @return status of the operation performed.
  </pre>