如何仅在asp.net中为一个用户使用成员身份? [英] How to use membership for one user only in asp.net ?

查看:94
本文介绍了如何仅在asp.net中为一个用户使用成员身份?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我最近完成了一个带有控制面板的网站的开发.因此,我需要为该面板的管理员提供登录功能.我了解会员资格以及它如何向数据库中的所有内容投放广告.但是我不想要这样做,因为我只有一个用户,因此我不需要一个用户的完整数据库.那么,如何在不创建数据库的情况下实现登录功能.

预先感谢.

Hi all ,

I recently finished developing a website with its control panel.So i need to provide login functionality for the admin to this panel.I know about membership and how it ads a database with everything.But i don''t want this since i have only one user so i don''t need a complete database for one user.So how can i make the login functionality without the creation of database.?

Thanks in advance.

推荐答案

我认为实现此目的的最佳方法是,仅在该用户的Web.Config文件和Authorized Admin文件夹中添加uid和密码. > http://msdn.microsoft.com/en-us/library/wce3kxhd.aspx [ ^ ]

并且不要忘记加密Web.Config文件. http://msdn.microsoft.com/en-us/library/zhhddkxy.aspx [ ^ ]
I think best way to implement this, add uid and password in Web.Config file and Authorized Admin folder for this user only.
http://msdn.microsoft.com/en-us/library/wce3kxhd.aspx[^]

And Do not forget to encrypt Web.Config file. http://msdn.microsoft.com/en-us/library/zhhddkxy.aspx[^]


这篇关于如何仅在asp.net中为一个用户使用成员身份?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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