public int login( int id, int password, int type ){
		int flag = 0;
		if( !handler_info.initialize() ){
			System.out.println( "LoginServer : failed to initialize personinfo handler" );
			return ERROR_DATABASE;
		}
		int psd = handler_info.getPassword(id);
		if( psd == -1 )
			flag = ERROR_ID;
		else if( password != psd )
			flag = ERROR_PASSWORD;
		else if( password == psd ){
			if( type == TYPE_SUPER ){
				if( handler_info.getPosition(id) != TYPE_SUPER )
					flag = ERROR_AUTH;
				else{ 
					handler_info.updateOnlineState( id, true );
					flag = SUCCESS;
				}
			}
			else{
				handler_info.updateOnlineState( id, true );
				flag = SUCCESS;
			}
		}
		else
			flag = ERROR_UNKNOWN;
		handler_info.close();
		return flag;
	}