gigebyte / cookies

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

Problem with cookie delete #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps reproduce the problem?
1. Get cookie from server (something like this: Set-Cookie: 
mytoken=base64string; domain=mydomain.ru; expires=Mon, 22-Apr-2013 05:58:49 
GMT; path=/)

2. in Chrome console: 
$.cookies.get('mytoken')
"base64string"
it's working fine

3. in Chrome console: 
$.cookies.del('mytoken')
undefined
jaaulde.utils.cookies.del(true);
undefined
$.cookies.del(true);
undefined

Same situation in Firefox.

What version of the following are you using?
  jQuery:jquery-1.7.2.js
  cookies:jquery.cookies.2.2.0.min.js

What browser/version are you using?
last Firefox, last Chrome

What OS/version are you using?
Windows 8

Do you have any additional information to provide?
in IE9 del() is working!

Original issue reported on code.google.com by iklement...@gmail.com on 8 Apr 2013 at 6:03

GoogleCodeExporter commented 9 years ago
Hmm... I resolve this problem:
$.cookies.del('mytoken', {domain: 'mydomain.ru'});
undefined

or

jaaulde.utils.cookies.del('mytoken', { domain: 'mydomain.ru' });
undefined

Original comment by iklement...@gmail.com on 8 Apr 2013 at 6:34