J-query-cookie plug-in

Hello

I’ve used the j-query-cookie plug-in on my site home page to manage the display of a message in a modal window.

I have set the cookie to expire after 365 days - seems to work on FF, Opera and Chrome - (in that it doesn’t appear if I close and reopen the browser) but not IE9. (The modal window appears every time I close and reopen the browser.)

I wonder if anybody has any ideas why this might be the case.
Many Thanks

I have as follows



jQuery(function ($) {
 if ($.cookie('modal') != 'shown') 

{

 // SET THE COOKIE FOR 365 DAYS
 $.cookie('modal', 'shown', { expires: 365 });
 

 // Load dialog on page load
 $('#basic-modal-content').modal();

 // end cookie if
 }

});

Have you checked your browser settings for IE? It might be that your configuration of it isn’t allowing it to store cookies or they are being deleted when you close the browser. Check your internet options and make sure ‘delete browsing history on exit’ isn’t ticked.

I don’t know the specifics, but I’m pretty sure IE 9 was released with tighter privacy controls, some of which might be enabled by default:
How to manage cookies in Internet Explorer 9

That being said, I haven’t had any issues with cookies on a vanilla installation of IE 9.

Ahh! Thats it!

Thanks Anthony. I had overlooked that. Great help.