create cookie fo other applications
Assume we have three different ASP.NET web applications in our intranet, that all of them have a login page and after authenticating user create a cookie for authenticated开发者_如何学编程 user. Is it available to have one page as a login page and create that three application's cookie from here and then redirect user to demanded application?
It should be possible. What you need is to redirect loginattempts from all three applications to the same loginpage with a return URL as a parameter so that the loginpage can redirect the user back to the page they were looking for.
There are some requirements that you have to fulfill:
- All three applications need to be on the same domain
- All three applications need to share the same MachineKey
What this will do is create a logincookie that can be decrypted on all three pages.
精彩评论