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.
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.
Sure I could google and use trial and error forever but I was hoping you all could point me to your prefered go to script for this? Thanks!
Aka client login and out script
Here is a helpful link: http://bit.ly/VXIlcC =)
And try the 3 link after you click it. Its not my preferred because I never needed one but looks good and it might help you.
Personally, I wouldn't recommend any of those (on the first page).
"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.
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.
Ones that I have come across that look promising are http://usercake.com/ http://angry-frog.com/downloads-page/
uhh... NO
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.