且构网

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

记住登录页面中的代码

更新时间:2023-12-03 15:12:22

Why would you want to do that?

Think about it: if you store the "remember me" stuff in the database, how do you tell which user you are supposed to be logging in automatically, unless they tell you who they are? Which defeats the purpose of a "remember me" rather a lot, really...

Store it in a Cookie instead, like everyone else does!


相关阅读

推荐文章