Easy login script without database

后端 未结 10 1944
说谎
说谎 2020-12-04 20:17

How do I create an easy login script that does not require a database. I would like it to be safe.

Alright, what about this script, i just made it by my knowledge in

10条回答
  •  情书的邮戳
    2020-12-04 21:11

    If you don't have a database, where will the PERMANENT record of your users' login data be stored? Sure, while the user is logged in, the minimal user information required for your site to work can be stored in a session or cookie. But after they log out, then what? The session goes away, the cookie can be hacked.

    So your user comes back to your site. He tries to log in. What trustworthy thing does your site compare his login info to?

提交回复
热议问题