views:

34

answers:

1

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.

A: 

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

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

awrigley
Thanks awrigley. This is what I was looking for. The missing part was machine key in my web.config.
303
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.
303
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.
awrigley