{"id":60,"date":"2010-12-10T20:16:56","date_gmt":"2010-12-10T19:16:56","guid":{"rendered":"http:\/\/www.lelyveld.com\/blog\/?p=60"},"modified":"2013-03-10T11:53:32","modified_gmt":"2013-03-10T10:53:32","slug":"sessionstorage-cookies-not-disappearing-in-firefox","status":"publish","type":"post","link":"https:\/\/www.lelyveld.com\/blog\/?p=60","title":{"rendered":"sessionStorage &#038; cookie&#8217;s not disappearing in Firefox"},"content":{"rendered":"<p>Something that had me staring at my screen in exasperation recently is Firefox&#8217;s behaviour with cookies. Specifically cookies with no expiry date, which should disappear when the session ends &#8211; however I was closing Firefox, reopening and the cookie was still there. In all the other browsers things were working as expected with the cookie being deleted, just not in Firefox.<\/p>\n<p>As it turns out the culprit was the &#8216;save my current tabs&#8217; option, if you have this turned on, Firefox saves all your cookies (&#038; now sessionStorage) so you can resume browsing where you left off &#8211; essentially it treats it as if your session never ends.<\/p>\n<p>If you turn this option off you&#8217;ll see the cookies &#038; sessionStorage being removed as you&#8217;d expect.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Something that had me staring at my screen in exasperation recently is Firefox&#8217;s behaviour with cookies. Specifically cookies with no expiry date, which should disappear when the session ends &#8211; however I was closing Firefox, reopening and the cookie was still there. In all the other browsers things were working as expected with the cookie [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[9],"tags":[30,29],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-coding","tag-firefox","tag-web-development"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1Y0hl-Y","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.lelyveld.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/60"}],"collection":[{"href":"https:\/\/www.lelyveld.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lelyveld.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lelyveld.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lelyveld.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=60"}],"version-history":[{"count":2,"href":"https:\/\/www.lelyveld.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":92,"href":"https:\/\/www.lelyveld.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions\/92"}],"wp:attachment":[{"href":"https:\/\/www.lelyveld.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lelyveld.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lelyveld.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}