在ASP.NET中通过Web应用程序进行表单身份验证
我有2个不同的Web应用程序.在所有这些应用程序中,我都使用了表单身份验证.
问题陈述:
考虑我有2个网站-Dealer.com,company.com
company.com为Dealer.com提供登录功能,以方便最终客户使用,并且company.com也具有相同的登录页面.
经销商希望在登录页面上显示其品牌名称,登录后最终客户应该具有相同的环境(不像在其他网站上重定向一样).
因此,我使用了< form action ="company.co/login.aspx?dealer=1" method ="post">在Dealer.com网站上.
并在另一个网站(company.com)上-我可以在表单元素中获取值.第一次可以正常使用,但是注销操作后,如果我尝试使用相同的凭据进行secontime,它将重定向到company.com/logn.aspx页面.
此外,我不想在查询字符串中传递uid和pwd.
有人可以指导我或建议执行此功能吗?
还有其他方法可以完成相同的任务吗?我不知道这些Web如何部署在同一服务器上或不同服务器上.
任何建议或帮助将不胜感激.
在此先谢谢您.
Hi,
I''ve 2 different web applications. In all these application i''ve used formauthentication.
Problem Statement:
Consider I have 2 web site - dealer.com, company.com
company.com provides login functinality to dealer.com for ease of use to end-customer and company.com has also same login page.
dealer wants his brand name on login page and after login end-customer should feel same environment (not like redirected in other web site).
so, i have used <form action="company.co/login.aspx?dealer=1" method="post"> in dealer.com web site.
and on the other site(company.com)- i can get values in form element. Its works fine for first time but after logout action if i try secontime with same credential it redirect me to company.com/logn.aspx page.
Further, i dont want to pass uid and pwd in query string.
Cany anybody guide me or suggest to carry out this functinality?
Is any other way to do the same task? I dont know how these web deployed on same server or different.
Any suggession or help will be greatly appreciated.
Thanks in advance.
在这里您可以尝试ASP.NET Roles and Membership
.
请参考以下链接:
了解ASP.NET角色和成员资格-入门教程 [ ^ ]
如何:在ASP.NET 2.0中使用角色管理器 [成员资格简介 [检查ASP.NET的成员资格,角色和配置文件-第1部分 [此处 [
Here you can tryASP.NET Roles and Membership
.
Refer the links below:
Understanding ASP.NET Roles and Membership - A Beginner''s Tutorial[^]
How To: Use Role Manager in ASP.NET 2.0[^]
Introduction to Membership[^]
Examining ASP.NET''s Membership, Roles, and Profile - Part 1[^]
And a lot more links here[^].
Hope it helps.
--Amit