reverting changes to SetSercureCookie methods