ASP.NET Session Cookies – specifying the base domain
Create a ISessionIDManager, since you only want to change the cookie domain we will let the default one do all the work. This is configured in web.config on the sessionState element under <system.web>. <sessionState sessionIDManagerType=”MySessionIDManager” /> And the implementation. public class MySessionIDManager: SessionIDManager, ISessionIDManager { void ISessionIDManager.SaveSessionID( HttpContext context, string id, out bool redirected, out … Read more