Secure was not being saved per the variable

At line 56 of the existing code the `options.secure` variable was not being properly set and was thus resulting in an ignored statement and the cookie not being set when passed a `secure:true` value through the options.