Session cookie is reset by ASP.NET
<p>My site consists of single aspx page and few resources like images, js and stylesheets. When the page is opened it generates Asp.Net_SessionId wich is used when getting other resources but then the resource resets ASP.NET_SessionId with response. What can be done about this?</p>

<pre><code>Default.aspx:
Request:
Cookie ASP.NET_SessionId=

Response
Set-Cookie ASP.NET_SessionId=pf31rzumimjurdmdhc1qgq45; expires=Tue, 16-Mar-2010 14:21:43 GMT; path=/; HttpOnly

Default.css:
Request:
Cookie ASP.NET_SessionId=pf31rzumimjurdmdhc1qgq45

Response:
Set-Cookie ASP.NET_SessionId=; expires=Tue, 16-Mar-2010 14:21:44 GMT; path=/
</code></pre>

<p>This drives me crazy. It only happens when I'm setting sessionCookie.Expire value. Moreover sometimes it's fine sometimes it like the above description :(</p>
