表单身份验证中的多个登录URL? [英] Multiple login url in forms authentication ?

查看:108
本文介绍了表单身份验证中的多个登录URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在web.config中有一个用于管理的登录URL,它具有特定的URL.但是我想为要登录到该网站的用户提供另一个URL,那么我可以在同一个web.config中定义多个登录URL吗?

在此先感谢您.

Hi all ,

I have a login url in the web.config for the admin and it has a certain url.But i need another url for the users that wants to login to the website,so can i define multiple login url in the same web.config ?

Thanks in advance.

推荐答案

您的应用程序中没有使用多个登录页面,而是在您的应用程序中使用ROLE MEMBERSHIP PROVIDER并相应地自定义应用程序.


这样,所有页面对于所有用户都是通用的,但是将根据用户的角色来区分用户,您也可以根据角色自定义页面功能.
Instead of have multiple login pages in your application use ROLE MEMBERSHIP PROVIDER in your application and customize the application accordingly.


By doing this all the pages will be common to all the users but the users will be distinguised according to their roles, you can customize the page features acording to the roles too.


为什么需要多个登录表单?这对我来说没有多大意义.
Why do you need multiple login forms ? That doesn''t make much sense to me.


请参阅以下内容

http://forums.asp.net/t/1296825.aspx/1 [ ^ ]

http://forums.asp.net/t/328206.aspx/1 [ ^ ]

http://stackoverflow.com/questions/748287/how-在某些情况下to-override-change-formsauthentication-loginurl [
Refer the following

http://forums.asp.net/t/1296825.aspx/1[^]

http://forums.asp.net/t/328206.aspx/1[^]

http://stackoverflow.com/questions/748287/how-to-override-change-formsauthentication-loginurl-in-certain-cases[^]


这篇关于表单身份验证中的多个登录URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆