for(Object name:Collections.list(session.getAttributeNames())){

    session.removeAttributeName((String)name);

}