simplify session cookie options
Merge pull request #21 from kcrayon/sessioncookieoptions

simplify session cookie options
clean up error handling