django - Does cokkie path matter for deleting cookie -
i have cookie:
name: trace value: true path: / expires: until of browser session end
i send response django server cookie set way: response.set_cookie('trace', max_age=0, path=/some/path/)
. suppose way make browser delete cookie.
the question is: should affect initial cookie path=/
? or if path different, initial cookie should stay alive?
no not affect cookie different path. name , path both checked see if cookie matches.
same thing happens when set new value cookie on particular path. not affect other cookies same name , different paths 1 set.
Comments
Post a Comment