In form authentication the [Authorize(Roles = "Admin")] not working.
[Authorize(Roles = "Admin")]
Application_AuthenticateRequest
the problem is that when i use <authentication mode="Forms"> in web.config then Authorize Role is not working.
<authentication mode="Forms">
I have two different domain(one is suppose xyz.com and another one is a.xyz.com(subdomain))
xyz.com
a.xyz.com
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#.
global.asax