如何使一个安全的登录页面,搜索功能 [英] How to make a secure login page, search functions
问题描述
我想知道我怎样才能使一个安全的登录页面?我不想增加注册页面我只是想只用一个用户名和密码(管理面板)登录,但我不知道如何保护它。我使用的是从工具箱defult登录。
I would like to know how can I make a secure login page? I don't want to add a register page I just want to login with just a username and password ( administration panel ) , but I don't know how to secure it . I'm using defult Login from toolbox.
此外,我想知道如何使一个搜索功能,我将添加一个图像显示.EXAMPLE
Also I would like to know how to make a search function I will add a image to show .example
会有人不介意帮我?
PS:SQL数据库2008
Would someone don't mind helping me ? PS: sql database 2008
非常感谢你。
推荐答案
您必须使用窗体身份验证。
You must use forms authentication.
下面的链接将帮助你很多:
The below link will help you a lot:
<一个href=\"http://www.asp.net/web-forms/tutorials/security/introduction/an-overview-of-forms-authentication-vb\" rel=\"nofollow\">http://www.asp.net/web-forms/tutorials/security/introduction/an-overview-of-forms-authentication-vb
它也可以让你的用户数据库映射,并添加角色,对他们是安全的,因为登录cookie被加密,它也给你了,你要修改的方式的灵活性。
it also allows you to map the users from database and add roles to them and it is secure as login cookies are encrypted and it also gives you the flexibility for the way you want to modify it.
也允许你指定访问的文件夹。
上面的链接会使事情清楚你,将是有益的。
it also allows you to specify access to folders. the above link will make thing clear for you and will be helpful
和用于搜索:在它与正常的select语句使用PARAMS SQL存储过程
and for search : Use sql stored procedures with params with normal select statement in it
这篇关于如何使一个安全的登录页面,搜索功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!