Set cookie engine for sessions and messages