Cookies in IE6+, Safari vs. Opera, Firefox (JQuery) -


IE + Safari / Opera + has found a strange difference in cookie behavior in Firefox by navigating with buttons:

Cookies set on one page in IE and Safari have been dropped (return), Opera and Firefox continue new cookies when they return to the previous page via the 'back' button.

What do I want the latter behavior, but how can I apply it to IE and Safari, if this is also possible?

Cookies are set by the server and the JQuery Cookie API ($ .cookie)

Thanks.

I have gone into the exact opposite problem FF and Chrome when cookies are loaded in the page Returns back. If an option chooses an option that changes a cookie, goes to the second page, then clicks back, the change is lost

Edit: I just Also fix these persistency problems with FF / Chrome by adding these PHP rows on my page. I:

  Header ("Cache-Control: No-Store, Sure-Modify" ); Header ("End: Saturn, 26 July 1997 05:00:00 GMT");  

It seems that browsers had different rules for caching and one would have to specify which one to use. Also, before using a dummy function like this:

  window.onbeforeunload = function () {// return 'warning'; }  

The end user helps prevent the page from caching without giving a warning dialogue.

I do not know that it helps, but I thought I wanted my two cents.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -