- [Authorize(Roles = "Admin,SubAdmin")]
- public ActionResult Index()
- {
-
- }
the problem is that when i use <authentication mode="Forms"> in web.config then Authorize Role is not working.
I have two different domain(one is suppose xyz.com and another one is a.xyz.com(subdomain))
Here i am passing the cookie value from one to another for accessing all the data.(sso)
The above code is in xyz.com. the same code of global.asax is on the a.xyz.com so How do i fix the problem.Both are in Mvc 5 c#.