If you use cookieless session ID and deploy them on Azure, you might get infinite loop when you query your Web site, and browser wocould down. in this scenario, you need to overwrite ASP. net default isessionidmanager.
In method getsessionid, your cocould shoshould be below
Public String Getsessionid (httpcontext context ){ VaR Id = httpcontext. Current. items [ " Aspcookielesssession " ]As String ; // Azure web site does not support Header "aspfiltersessionid", so we cannot get context. items ["aspcookielesssession"] // For azure web site use, headers ["X-original-URL"] format:/(S (XXX)/default. aspx VaR Originalurl = httpcontext. Current. Request. headers [ " X-original-URL " ]; If (!String . Isnullorempty (originalurl )){ VaR Match = RegEx. Match (httpcontext. Current. Request. headers [ " X-original-URL " ], @" /\ (S \ (\ W + )\)\) " ); If (Match. Success) {ID = Match. Groups [ 1 ]. Value ;}} Return ID ;}
Don't forget to change your web. config file.