I'm using the following code in my .Net application (.Net v1.1, Windows
2000) to write Session Cookies.
HttpContext.Current.Response.Cookies("cookieSessio n")("SessionID") =
strSessionID
HttpContext.Current.Response.Cookies("cookieSessio n")("Site_ID") =
strSite_ID
HttpContext.Current.Response.Cookies("cookieSessio n")("LanguageCode_ID")
= strLanguageCode_ID
HttpContext.Current.Response.Cookies("cookieSessio n")("ShipZip") =
strShipZip
HttpContext.Current.Response.Cookies("cookieSessio n")("blnLoadDynSide")
= blnLoadDynSide
HttpContext.Current.Response.Cookies("cookieSessio n")("blnProdView") =
blnProdView
HttpContext.Current.Response.Cookies("cookieSessio n")("blnHasCart") =
blnHasCart
HttpContext.Current.Response.Cookies("cookieSessio n")("CatalogCode_ID")
= strCatalogCode_ID
HttpContext.Current.Response.Cookies("cookieSessio n")("SegmentTypeCode_ID")
= strSegmentTypeCode_ID
HttpContext.Current.Response.Cookies("cookieSessio n").Expires =
DateTime.Now.AddDays(10)
Arbitrarily, in Internet Explorer, the cookie is written twice. This
causes major issues w/ my Ecommerce application.
Here's what the IIS log files look like. Notice the cookie with the
same name in there twice.
2005-07-18 16:36:07 172.191.129.192 - 192.168.71.201 443 GET
/Product/Product-CheckoutSummary.aspx - 200 66080 1026 360 HTTP/1.1
www.mydomain.com Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1)
WEBTRENDS_ID=207.200.116.5-1678957136.29722584;+cookieSession=SessionID=b8bbf 19a-8165-4510-98c2-d03ad9399720&Site_ID=1&LanguageCode_ID=360&ShipZip =&blnLoadDynSide=1&blnProdView=1&blnHasCart=0&Cata logCode_ID=0&SegmentTypeCode_ID=0;+CP=null*;+WEBTR ENDS_ID=207.200.116.6-1977234432.29722583;+cookieSession=SessionID=b8bbf 19a-8165-4510-98c2-d03ad9399720&Site_ID=1&LanguageCode_ID=360&ShipZip =91364&blnLoadDynSide=1&blnProdView=1&blnHasCart=0 &CatalogCode_ID=0&SegmentTypeCode_ID=0;+CP=null*;+ ASP.NET_SessionId=v4qore3eak3zrzjcirgqpkut
https://www.mydomain.com/Product/Pro...utBilling.aspx
Anyone seen this before and fixed it. Newsgroups an KBs are not
helping me so far.