2

I have few websites based on the WebForms and one based on MVC. All websites have the same settings for forms authentication in web config.

The problem is that once logged in to WebForms website, I have to re-login for MVC websites, but when I log out from MVC website, I am automatically logged out from WebForms websites.

How can I pass information to the MVC website that user was successfully logged in when using WebForms.

1

1 Answer 1

1

Try this article. Essentially, you want single sign on. That is the term to google for.

http://www.codeproject.com/KB/aspnet/SingleSignon.aspx

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks awrigley. This is what I was looking for. The missing part was machine key in my web.config.
I would like to come back to this issue. I have this working, however, is it possible to have signle sign for two application that use same domain, but are located on different servers? The current situation is, that one app (app1.domain.com) is hosted on iis6, the second app (app2.domain.com) is hosted on the second server on iis7.
I think you should edit this question, or ask a new, more specific one. My experience with single sign on is limited to one server, and the solution above is linked to the machine key. Can two servers have the same key? I don't know. I think you should ask the question again and qualify where you have got to.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.