How to overcome this?
Okay here is the solution..
Add following Page_Unload function in every page from where you are navigating to any other Subdomain
Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Unload
Context.Response.Cookies.Item("ASP.NET_SessionId").Domain = "[YOUR WEBSITE]"
Dim sessionCookie As New Web.HttpCookie("ASP.NET_SessionId", Context.Session.SessionID)
sessionCookie.Domain = "[YOUR WEBSITE]"
Context.Response.SetCookie(sessionCookie)
End Sub
Where [YOUR WEBSITE] should be in form = .myweb.com i.e. dot yourwebsite dot com/net/org/co.in/co.uk etc
but why this happens ?
ReplyDelete