gopalv
asked on
Form Authentication in MVC
Hi,
We have two websites, one is asp.net website and another is MVC website. We need to get login details in MVC website. Actually MVC website is redirecting from the asp.net site. We have applied form authentication in the asp.net website and is working fine. But we didn't getting the login details in the MVC site. Always getting HttpContext.User.Identity. IsAuthenti cated=fals e
Please advice a solution
Thanks
We have two websites, one is asp.net website and another is MVC website. We need to get login details in MVC website. Actually MVC website is redirecting from the asp.net site. We have applied form authentication in the asp.net website and is working fine. But we didn't getting the login details in the MVC site. Always getting HttpContext.User.Identity.
Please advice a solution
Thanks
ASKER
C# language is using for both sites (MVC4 and asp.net ). We added the two applications under one website
ASKER
Form authentication is working fine in the same domain but it is not working on different domain.
Please advice a solution ,
Thanks
Please advice a solution ,
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Solved by the using redirection url with server name and port number
It's inappropriate to give a "C" grade when the ball was in your court, if you needed further information or assistance it is your responsibility to ask. I didn't even know what approach you were going for and you closed the question.
Do the websites share a domain? You can defined a domain cookie to use to allow access on both sites.