Opened 12 years ago

Closed 12 years ago

#5782 closed defect (fixed)

cookie deletion is not implemented

Reported by: guest Owned by: Adam Peller
Priority: high Milestone: 1.1
Component: Core Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description

In the documentation for dojo.cookie:

example: delete a cookie: | dojo.cookie("configObj", null);

However, there is no behavior implemented for null values being passed in for a cookie. You end up with the string 'null' as the value for the cookie.

Change History (3)

comment:1 Changed 12 years ago by Adam Peller

Milestone: 1.1
Owner: changed from anonymous to Ben Lowery

iirc, the way to delete a cookie is to set expires to a date in the past, or 0. the docs seem to conflict on this.

comment:2 Changed 12 years ago by Adam Peller

Owner: changed from Ben Lowery to Adam Peller
Status: newassigned

comment:3 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: assignedclosed

(In [12333]) Use regexp to find cookie contents. (thanks, Pat) Fixes #2881. Correct docs on deleting cookies. Fixes #5782 !strict

Note: See TracTickets for help on using tickets.