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
gopalvAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gdemariaCommented:
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.
0
gopalvAuthor Commented:
C# language is using for both sites (MVC4 and asp.net ). We added the  two applications under one website
0
gopalvAuthor Commented:
Form authentication is working fine in the same domain but it is not working  on different domain.
Please advice a solution ,

Thanks
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

gdemariaCommented:
It sounds like you're talking about having a person login on one domain and maintaining that login on the second domain, without them having to login again.   If so, then you need to pass some encrypted authorization identifier when moving between the sites and use it to them into the other site.   I would say use a common cookie, but that doesn't work with different domains, unless its just different subdomains.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gopalvAuthor Commented:
Solved by the using redirection url with server name and port number
0
gdemariaCommented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Applications

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.