Need easiest/best php login/logout with password/username replacement?
# December 12, 2012 at 10:10 pm
Personally, I wouldn’t recommend any of those (on the first page).
> Need easiest/best php login/logout with password/username replacement?
“Easiest” and “best” are highly subjective requirements, and are almost certainly **meaningless** in terms of your actual goals.
What do you mean by “replacement”?
Beyond that, what is your actual goal and requirements?
Is this for one page? Many? *Parts* of pages (different content based on authentication)? Does the user need to stay logged in throughout their session? Do you need “remember me” capability? Is the list of users determined by you, or do you need to accept registrations? What level of security do you need (are we protecting pet photos, or credit card numbers)? Do you need a control panel to add more users or manage their info? Do you need users to be able to update their usernames/passwords? Do you need a password recovery feature? Do you want to detect/prevent simultaneous logins? Are you using a database? Do you need to support SSL? Are there only two states (logged in/ logged out), or do you need more than one usergroup (e.g., “user” + “moderator” + “admin”)? Do you need re-authentication for sensitive actions?
I could go on, but…
We (in fact, *you*) need to know at least *some* of this, or you won’t find “the best” solution.# December 13, 2012 at 5:11 am
This reply has been reported for inappropriate content.
Truth be told, I have never done this, and would like to learn. I would like to implement one before a client asks for such some day. So, if I’m going to try, I mine as well try with all the bells and whistles.# December 13, 2012 at 9:37 pm
> `echo “
Your new password has been generated and sent to the email
associated with your account.`
–angry frog login script v3
At first glance, usercake seems fairly well thought-out. SHA-1 + salt, good feature list.
I haven’t read through it in its entirety, of course, but it appears to be well-documented: always a good sign.
You must be logged in to reply to this topic.