ASP.NET MVC Session across subdomains

Posted by nccsbim071 on Stack Overflow See other posts from Stack Overflow or by nccsbim071
Published on 2010-03-24T04:00:30Z Indexed on 2010/03/24 4:03 UTC
Read the original article Hit count: 241

Filed under:
|
|
|

Hi,

In my website i have implemented custom session values. In which, on log on i set the session value to some object. This object is used to extract user specific data from db.

now the problem is If user logs in with : test1.somesite.com and logs off and again logs in with: test2.somesite.com that user is still receiving the data from object specific to test1.somesite.com.

the point is whichever site user frist logs in with the second time if he logs in with anathor subdomain he is always getting the data from previous sub domain login.

on log out from specific domain i cleared all the sessions(tried everything): by putting HttpContext.session["UserDetail"] = null;, HttpContext.Session.Abandon() and also HttpContext.Session.Clear();

but nothing seems to work

any help please

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc