{"id":28,"date":"2007-10-27T23:55:13","date_gmt":"2007-10-27T20:55:13","guid":{"rendered":"http:\/\/www.held.org.il\/blog\/?p=28"},"modified":"2007-10-27T23:55:13","modified_gmt":"2007-10-27T20:55:13","slug":"session-cookie-saving-different-browser-windowtabs","status":"publish","type":"post","link":"http:\/\/www.held.org.il\/blog\/2007\/10\/session-cookie-saving-different-browser-windowtabs\/","title":{"rendered":"Session cookie preserving; other browser window\/tabs"},"content":{"rendered":"<p>Many websites use session-cookies (<a href=\"http:\/\/www.php.net\/manual\/en\/ref.session.php\">PHP session<\/a> installs such a cookie, for example). Session-cookies have expiry time of zero, and the browser usually deletes them after closing its window. This is very useful for a 'log-in' session, like in your bank account, gmail, etc.<\/p>\n<p>So all browsers delete the cookie as you close them, but what happens <strong>when you open a new browser window or tab<\/strong>? Does it also respect this temporary, session cookie? If you're logged in to gmail from one window, can you open a new browser window with another gmail account?<\/p>\n<p>The answer is not surprising: that depends on your browser.<\/p>\n<p><!--more--><\/p>\n<p>According to <a href=\"http:\/\/aranea.zuavra.net\/index.php\/80\/\">this article<\/a>:<\/p>\n<ul>\n<li>Firefox would always respect the session cookie, whether it's a new window or tab.<\/li>\n<li>IE would respect the session in all tabs\/windows running <strong>in the same IE process<\/strong>:\n<ul>\n<li>Tabs, pop-ups and Ctrl+N (File -&gt; New) windows are running in the same process, thus would respect the session-cookie.<\/li>\n<li>Re-running iexplore.exe (either from the desktop\/launch pad\/start menu) would create a separate process, unaware of the session cookies from the other IE process.<\/li>\n<\/ul>\n<p>Funny thing is that if you have less than 32MB ram, even re-running iexplore.exe <a href=\"http:\/\/www.held.org.il\/blog\/wp-admin\/wouldn%27t%20create%20a%20separate%20process\">wouldn't create a separate process<\/a>, on IE 6.0 and earlier.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Many websites use session-cookies (PHP session installs such a cookie, for example). Session-cookies have expiry time of zero, and the browser usually deletes them after closing its window. This is very useful for a &#8216;log-in&#8217; session, like in your bank account, gmail, etc. So all browsers delete the cookie as you close them, but what [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15],"tags":[25,87,101,202],"_links":{"self":[{"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/posts\/28"}],"collection":[{"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":0,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}