Validate session config options.

[ fix #179 ]