Cookie set for subdomain, but IE Developer Tools show cookie at root domain. What am I missing?


We have a number of sites hanging off a root domain. E.g:

dev.mydomain.co.nz test.mydomain.co.nz www.mydomain.co.nz

I monitor my connection to dev.mydomain.co.nz with Fiddler and receive a cookie with a header like:

Set-Cookie: mytest=blah; domain=dev.mydomain.co.nz; path=/

Then in IE10 I use F12 Developer Tools, then select Cache - View cookie information.

It shows me this:

NAME mytest VALUE blah DOMAIN mydomain.co.nz PATH / EXPIRES At the end of the Session

Where'd the "dev" subdomain go?

The weird thing is, if I then make request to test.mydomain.co.nz, it does NOT send the cookie, but a request to dev.mydomain.co.nz DOES send the mytest cookie.

The Resources - Cookies developer tool in Chrome represents the cookies exactly as I'd expect. IE BEHAVES correctly like Chrome, but the developer tools seem to garble the session cookie details.

Is this an IE problem or am I missing something?


There's no distinction between domains and subdomains in <a href="http://msdn.microsoft.com/en-us/library/dd565626" rel="nofollow">IE Developer Tools</a>.


<ul><li><a href="http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx" rel="nofollow">IE Cookie Internals</a></li> <li><a href="http://blogs.msdn.com/b/ie/archive/2007/08/29/update-to-internet-explorer-s-cookie-jar.aspx" rel="nofollow">Update to Internet Explorer's Cookie Jar</a></li> </ul>


I had a problem vers Domain was localhost or when domain didn't contain TLD.

For IE your domain should have a valid TLD, or leave Domain empty


  • Does browser ever do cache response when no headers relating to cache returned?
  • If else if cond in mongodb aggregation
  • Video tag on react with create-react-app project
  • SQL Server multiple cascade path issue - is my model faulty?
  • Round a float and convert it to an integer in a Python2 and Python3 compatible manner
  • show Custom Message at Table area in jqGrid
  • How do I specify the positive class in an H2O random forest or other binary classifier?
  • Passenger and Apache2 Display File Directory Structure rather than application
  • Is it possible to test a function that uses get_type_hints with a doctest?
  • Save cropped image from ng-src
  • MySQL equivalent to MS SQL's Cross Apply
  • Google Geocoding API limit exceeded on cell network, but not on wifi
  • autotest on ubuntu does nothing
  • How do I link when building with llvm libraries?
  • Identifying dates in strings using NLTK
  • Thick underline when hover AND when active
  • Force fading edge on TextView
  • On unchecking a checkbox trigger an event
  • Spring annotation @Order
  • How to organize this layout with overflows?
  • How can I do case insensitive string search with Linq and SQL Server?
  • How to create OLE Automation to be used with ClearExplorer
  • Javascript inside HTML import not affecting imported HTML
  • C# code can't “see” the methods in my C++ dll
  • Copy and paste data from multiple workbooks to a worksheet in another Workbook
  • What is the difference between dynamically creating a script tag and statically embed a script tag?
  • Regex not working in java 1.5
  • openpyxl - adding new rows in excel file with merged cell existing
  • Create an average of multiple excel chart without the data source
  • How convert html to BBcode in C#
  • Using redis as an LRU cache for postgres
  • Bad automatic Triangulation with Mayavi for coloring a surface known only by its corner
  • How to call different template for different category archive page in woocommerce