Link to home
Start Free TrialLog in
Avatar of gopalv
gopalvFlag for India

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.IsAuthenticated=false

 Please advice a solution

 Thanks
Avatar of gdemaria
gdemaria
Flag of United States of America image

MVC is a framework and asp.net is a programming language.  What language is the MVC site coded in, also in asp.net?

Do the websites share a domain?  You can defined a domain cookie to use to allow access on both sites.
Avatar of gopalv

ASKER

C# language is using for both sites (MVC4 and asp.net ). We added the  two applications under one website
Avatar of gopalv

ASKER

Form authentication is working fine in the same domain but it is not working  on different domain.
Please advice a solution ,

Thanks
ASKER CERTIFIED SOLUTION
Avatar of gdemaria
gdemaria
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gopalv

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.