Ensure secure cookie setting is properly used.