Creating a login system in PHP

后端 未结 4 1156
甜味超标
甜味超标 2020-12-28 23:50

Can someone please help me? My username is Blimeo and my password is \"password\" but when I put my credentials in, it says \"Access denied\" like I told it to. I am 100% su

4条回答
  •  感动是毒
    2020-12-29 00:26

    UPDATE, 2016

    Please only use existing login systems, which are provided out-of-the-box in nearly every PHP framework! There's absolutly no reason to write this by yourself, as user authentication is a big topic and it will take months (years) to write a serious, stable and modern login solution.

    ORIGINAL TEXT, FROM 2012:

    As login systems are a security issue and EVERYBODY makes the same mistakes over and over again, i can clearly say:

    Take a professional script and work through the code to understand whats happening, what hashing and salting is and what problems session can have.

    [removed outdating link]

    Here are three projects that might be what you need:

    https://github.com/panique/php-login-one-file

    https://github.com/panique/php-login-minimal

    https://github.com/panique/huge

提交回复
热议问题