Fixed a new cookie setting code.