private boolean isSessionValid(xAuthPlayer xp, String ipAddress, Timestamp loginTime) {
		if (plugin.getConfig().getBoolean("session.verifyip") && !ipAddress.equals(xp.getIPAddress()))
			return false;

		Timestamp expireTime = new Timestamp(loginTime.getTime() + (plugin.getConfig().getInt("session.length") * 1000));
		return expireTime.compareTo(new Timestamp(System.currentTimeMillis())) > 0;
	}