added config value to control session flash expiration behaviour