Cook the frozen green beans according to package directions. Drain well. Place in a large mixing bowl and set aside.
Preheat the oven to 350 degrees. Prepare two 9x13 casserole dishes with nonstick cooking spray.
In a large (12 inch) skillet, melt the butter over medium heat. Add the onions and cook until translucent, about 8 minutes, stirring occasionally.
Add the mushrooms, salting as desired. Continue to cook over medium heat allowing the mushrooms to release their juices and evaporate as much as possible, for about 10 minutes.
Sprinkle the flour over the onions and mushrooms, stirring until the vegetables have been coated with the flour.
Add the chicken broth, half and half, salt, and pepper. Bring the liquid to a boil and then reduce heat to medium-low.
Allow the sauce to simmer, stirring constantly, until the mixture has thickened enough to coat the back of a spoon.
Pour the sauce over the green beans.
Add about 1 cup of the fried onions to the green beans and mix until the sauce is completely incorporated.
Divide the green bean mixture between the two casserole dishes.
Place the casseroles in the oven for 30 minutes.
Temporarily remove the casseroles from the oven to add the remaining fried onion over the top. Return the casseroles to the oven and bake for an additional 5 to 10 minutes or until the onions are slightly brown and crispy.
To make ahead and FREEZE:
Prepare the casseroles as directed but do not bake.
Cover the casseroles tightly with aluminum foil and freeze for up to 3 months.
To bake, thaw the casseroles in the refrigerator. (Note: If using aluminum pans, you can place the casseroles into the oven frozen. Do not place glass casserole dishes into a preheated oven as this might cause the glass to break.)
If thawed, bake as directed. If frozen, bake for 45 minutes. Top with the fried onions and continue to bake for an additional 5 to 10 minutes.