Creating cookieless application on development machine with asp.net

Posted by zaladane on Stack Overflow See other posts from Stack Overflow or by zaladane
Published on 2010-02-23T00:42:32Z Indexed on 2010/04/01 7:03 UTC
Read the original article Hit count: 419

Filed under:
|
|

I tried posting this on ServerFault with no luck so i am trying here.

I am thinking about setting up a new domain to host static content on my website and have it cookieless just like Stackoverflow with their static domain. So before going ahead and buying the domain and setting it up I wanted to test it on my developement machine first under localhost (I have to mention that i am planning on having IIS running on my new domain for the static files).

I therefore created a new application under IIS and disabled session state and forms authentication. When my main application needs resources like css, images and js , I use the path to the "static" application where they are hosted.

The problem is that when I look at the request and the response for the requested files, they still have the session_id cookie defined as well as the asp.net authentication cookie.

Is it at all possible to accomplish what i am trying to do on a development machine or do i have to just go ahead and purchase the new domain which hopefully with make things right? I tried to read about cookieless domain but can't figure out what i might be missing.

© Stack Overflow or respective owner

Related posts about cookieless

Related posts about ASP.NET