ASP.NET的登录页面 [英] ASP.NET Login page

查看:145
本文介绍了ASP.NET的登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要添加登录注册用户在我的网站。我将如何进行呢?它是通过使用会话?一旦发生注销??会发生什么Session变量

I want to add login for registered users in my website. How shall I proceed with it? Is it through the use of sessions? What will happen to the Session variable once the logout happens??

推荐答案

您的问题极为广泛,有许多不同的方式,可以实现的是,实际上,一个会员制为ASP.NET网站。

Your question is extremely broad and there are many different ways that you can implement what is, in effect, a "membership" system for an ASP.NET website.

我建议你通过阅读介绍会员从MSDN文章。本文将给你的ASP.NET成员最标准的方式是如何工作的概述。

I would suggest that you start by reading the "Introduction to Membership" article from MSDN. This article will give you an overview of how ASP.NET membership works in the most "standard" way.

它还提到使用各种ASP.NET成员资格控制(的登录,的 LoginView LoginStatus &安培; PasswordRecovery 为例)

It also mentions using the various ASP.NET membership "controls" (Login, LoginView, LoginStatus & PasswordRecovery for example).

使用这些控件连同内置的ASP.NET成员资格供应商(例如,ASP.NET提供的 SQL成员资格提供来对SQL Server的工作为您的用户帐户和凭据的数据存储)可以让你实现一个完整的会员和认证系统几乎没有code。在所有(即所有的功能是通过内置的会员制控制和声明加价提)。

Using these controls along with the built-in ASP.NET membership providers (for example, ASP.NET provides a SQL membership provider to work against SQL Server as the data store for your user accounts and credentials) will allow you to implement a complete membership and authentication system with virtually no code at all (i.e. all the functionality is provided by the built-in "membership" controls and declarative mark-up).

最后,一个真正的好一系列关于这一问题的文章是:

Finally, a really good series of articles on this subject is:

检查ASP.NET 2.0的会员,角色和配置文件

从4guysfromrolla网站。它开始于会员的话题一开始,通过云权的方式触及一个自定义的成员提供和管理界面,用于管理用户凭据圆了整个课题的实施。

from the 4guysfromrolla site. It's starts at the very beginning of the membership topic and goes right the way through to touching on the implementation of a custom membership provider and administrative interface for managing user credentials to round out the whole subject.

这篇关于ASP.NET的登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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