gigebyte / cookies

Automatically exported from code.google.com/p/cookies
0 stars 0 forks source link

Delete doesn't work! #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps reproduce the problem?
1. send cookie from servlet
2. delete it
3. get it -> not null

What is the expected result of the above steps?  What do you see instead?

Null value!!

What version of the following are you using?
  jQuery: 1.6.3
  cookies: 2.2.0

What browser/version are you using? firefox 6.0.2

What OS/version are you using? not relevant

Do you have any additional information to provide?
Yes! Managing cookies is very easy and there are a lot of information. Then why 
do you complicate the thing with jquery? Deleting a cookie is as simple as this:

document.cookie = "cookie_name=; expires=Thu, 01-Jan-70 00:00:01 GMT;";
OMG!

Original issue reported on code.google.com by gaglekas on 8 Sep 2011 at 10:21

GoogleCodeExporter commented 9 years ago
What flags are you setting on the cookie when you send it from the server? When 
you say you are deleting the cookie, I assume you mean via the .del() method in 
the API of my library?

As for your "additional information," that has nothing to do with the issue. If 
you don't want to use my library because of its over complication, then DON'T. 
What's more, you clearly haven't looked at the docs or paid very close 
attention to the page header on the project home--it says "_with_ jQuery 
bindings." In other words, it doesn't use jQuery to work with cookies at all.  
But if jQuery is available, it adds some jQuery methodologies for binding form 
values and such to cookies.

Working with cookies in the browsers is a pain which is why I wrote the API. 
But if you find it simpler to work directly with the built in browser way of 
manipulating cookies, do so.

Original comment by auldrid...@gmail.com on 8 Sep 2011 at 10:37