我想在asp.net网站上实现表单身份验证。 [英] i want to implement form authentication in asp.net website.

查看:86
本文介绍了我想在asp.net网站上实现表单身份验证。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过使用表单身份验证来管理网站。

如何为用户创建角色。

如何保护网页免受未经授权的访问。



i需要你的建议......



thanq ..

how can i manage the website by using forms authentication.
how can i create roles for the users.
how to protect the webpages from unauthorized access to it.

i need ur suggestions...

thanq..

推荐答案

这是您可以在ASP.NET书籍中轻松找到的基本内容之一,或者只是通过谷歌搜索。以下是一些开始的链接:



http://support.microsoft .com / kb / 301240 [ ^ ]

http://www.codedigest.com/Articles/ASPNET/176_Using_Roles_in_Forms_Authentication_in_ASPNet_20.aspx [ ^ ]



搜索,阅读和练习......这就是你学习的方法......
This is one of the very basic things you can easily find in a ASP.NET book or just by doing a google search. Here are few links to start:

http://support.microsoft.com/kb/301240[^]
http://www.codedigest.com/Articles/ASPNET/176_Using_Roles_in_Forms_Authentication_in_ASPNet_20.aspx[^]

Search, read and practice... that''s how you learn...


只需在数据库中创建用户类型并赋予他们权利根据类型。您可以使用会话来获取用户类型。然后为他们提供权限。
Just create types of users in the database and give them rights according to the types. You can use sessions for getting type of user.And then provide them rights.


这篇关于我想在asp.net网站上实现表单身份验证。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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