I have a website to which i've added dynamic javascript code generated on server. Code generated is an image file with some guids as query strings. I use Handler to create js response while at the same i assign Session unique value for new visitor so i can distinguish those from already surfing on site user. All browsers save Session during postbacks on initial site except Internet Explorer which generates each time new Guid for already existing customer.
Is there any way to fix it? Why does this happen?
Does any of part of your URL contain underscores? I've seen this cause problems with IE and session state before, especially when the same code works fine in other browsers.
Addition
As per your comment below your URL (most likely the hostname) contains an underscore. ALthough all the other browsers you are using cope OK with this, IE doesn't - however, in its defence (and I don't usually defend IE) an underscore is an illegal character in a DNS hostname.
I'm guessing you are accessing a local machine which has a NETBIOS name that includes an underscore, such as OFFICEPC_12.
As a workaround you could try
Replace the name of the server with its IP address e.g http://192.168.0.55/mypage.aspx
Add an entry into your HOSTS file with an alias for this pc, the alias not having underscores
Best solution really, change the name of the server!
At the end with help from @CResults and @Alex Key i've found out that IE blocks 3rd party cookies by default which was a case in my project.
Fix was as simple as adding p3p HTTP Header to Handler...
HttpContext.Current.Response.AddHeader("p3p", "CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");
thanks to both of ya!!!