Ensure cookies have httponly and secure flags set
Tweak database fields for consistency in length