Js-cookie: IE11 not saving cookie

Created on 12 Apr 2016  Â·  9Comments  Â·  Source: js-cookie/js-cookie

Used as per documentation, it works like a charm until the user has totally "killed" the browser. The cookie is somehow destroyed

Most helpful comment

I've found my solution by following this post:

http://answers.microsoft.com/en-us/ie/forum/ie11-iewindows8_1/ie-11-doesnt-seem-to-be-remembering/88d3d3d7-3f9e-4aa4-a272-22ea16854b0d

I have deactivate the "safe mode" in the options and now my tests works.

All 9 comments

Have you tried using regular document.cookie? Can you provide a simplified example where you can reproduce the problem?

@oninross Can you at least provide some steps to reproduce the problem?

Hello guys. I have the same problem here. I'ts seems to be a IE bug.

Some details:

  • I'm using IE 11.212.10586.0

Here my console tests:

> Cookies.get('session')
"s:1a0427f0-0627-11e6-9676-7bacb97b4483.2z+JyQeWZdPfAmrs/aPzqN1OI/BGjM0SnGsQVpxUuLg"
> Cookies.set('session', 'test')
"session=test; path=/"
> Cookies.get('session')
"s:1a0427f0-0627-11e6-9676-7bacb97b4483.2z+JyQeWZdPfAmrs/aPzqN1OI/BGjM0SnGsQVpxUuLg"
> Cookies.remove('session', {path: '/'})
undefined
> Cookies.get('session')
"s:1a0427f0-0627-11e6-9676-7bacb97b4483.2z+JyQeWZdPfAmrs/aPzqN1OI/BGjM0SnGsQVpxUuLg"
> Cookies.remove('session')
undefined
> Cookies.get('session')
"s:1a0427f0-0627-11e6-9676-7bacb97b4483.2z+JyQeWZdPfAmrs/aPzqN1OI/BGjM0SnGsQVpxUuLg"
> document.cookie
"SRVGROUP=common; language=s%3Aen.ThIXEZyI%2Fvfn9QurSOUp9Bi6KNkjz%2F8VjoXJgS%2FEN58; session=s%3A1a0427f0-0627-11e6-9676-7bacb97b4483.2z%2BJyQeWZdPfAmrs%2FaPzqN1OI%2FBGjM0SnGsQVpxUuLg; SRVGROUP=common; redirect=/"
> document.cookie = document.cookie.replace(' session=s%3A1a0427f0-0627-11e6-9676-7bacb97b4483.2z%2BJyQeWZdPfAmrs%2FaPzqN1OI%2FBGjM0SnGsQVpxUuLg;', '')
"SRVGROUP=common; language=s%3Aen.ThIXEZyI%2Fvfn9QurSOUp9Bi6KNkjz%2F8VjoXJgS%2FEN58; SRVGROUP=common; redirect=/"
> document.cookie
"SRVGROUP=common; language=s%3Aen.ThIXEZyI%2Fvfn9QurSOUp9Bi6KNkjz%2F8VjoXJgS%2FEN58; session=s%3A1a0427f0-0627-11e6-9676-7bacb97b4483.2z%2BJyQeWZdPfAmrs%2FaPzqN1OI%2FBGjM0SnGsQVpxUuLg; SRVGROUP=common; redirect=/"

I've found my solution by following this post:

http://answers.microsoft.com/en-us/ie/forum/ie11-iewindows8_1/ie-11-doesnt-seem-to-be-remembering/88d3d3d7-3f9e-4aa4-a272-22ea16854b0d

I have deactivate the "safe mode" in the options and now my tests works.

I have deactivate the "safe mode" in the options and now my tests works.

@XavierBoubert Thank you for the information, it was very useful!

Maybe we can add this into the FAQ in the Wiki once more people start reporting the same problem (I will link your research for new reports).

For now I will close this until the OP is capable of providing some example. There is nothing we can do here for this specific issue unfortunately.

I have the same problem with IE11 11.0.9600.17914. @XavierBoubert not work for me.

@mbraz Please, do not comment on closed issues. If you have a problem with the library can you please create a new issue providing an SSCCE example?

Ok, I'll do it.

Enviado do meu iPhone 4S

Em 7 de jul de 2016, às 23:00, Fagner Brack [email protected] escreveu:

@mbraz Please, do not comment in close issues. If you have a problem create a new issue after reading this.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

navin11 picture navin11  Â·  4Comments

junglized picture junglized  Â·  5Comments

BonBonSlick picture BonBonSlick  Â·  9Comments

yaconnn picture yaconnn  Â·  6Comments

luis-pato picture luis-pato  Â·  6Comments