且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

当我单击注册时如何从登录页面进入注册页面

更新时间:2023-12-01 23:50:52

首先,不要以明文形式存储密码-从安全角度来看,这是一个非常糟糕的主意.这里有一些说明将对您有所帮助:密码存储:操作方法. [^ ]

其次,为什么要手动执行所有这些操作?为什么不使用会员制,这意味着您不必检查每个页面上登录的用户,因为它首先不允许非用户访问该页面? 成员资格简介 [
First off, don''t store your passwords in clear text - it is a very bad idea from a security point of view. There are some notes here that will help: Password Storage: How to do it.[^]

Secondly, why are you doing all this manually? Why not use the Membership system, which will mean that you don''t have to check for user logged in on each page, because it won''t allow non-users access to the page in the first place? Introduction to Membership[^] It also provides all the common facilities...