add enable cookie setting
Merge pull request #570 from aogilvie/fix/enable-webapp-cookie

add enable cookie setting