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.
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.