[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PHP and user login stuff



> include "connect.php3";
> echo "<a href=\"/article314159$add2url\">";

Could someone expand on the thoughts here?

> > That's the point.  You have to impliement a cookie way and a non-cookie
> > way.  Why do both?

I think it's desirable to impliment both.  If Micah doesn't want to impliment the
cookie method now, thats fine, but at some point I'd want to go back and impliment
it.  Thats up to Micah.  Just like you'll have some users complain about cookies,
you'll have some users that like them, and tehy'll complain that they gotta log in
every dang time they try to interact.  Thats why we put em up there, and let people
choose.  Then no one really has a reason to complain.

We have 3 cookie settings:

Diabled
Enabled - Permanent
Enabled - Session Only

1st two are self explanatory (We'll hafta describe these well on the site) but the
third... would be coded so that the first time you did something requiring a
password it would ask you, with a little check box that defaulted to ON or OFF
depending on how the user sts the preference there.  The little box would read
something like "Save this password for the remainder of this session".  It would be
cookiefied (new word) and stored in yur browser with a low TTL.  As soon as you
decide to leave the site, the cookie would be destroyed.

So basicly we have 3 possible values for the Cookie field in the user table:

0 - Disabled (Checkbox defaults to NO)
1 - Disabled (Checkbox defaults to YES)
2 - Enabled

> to save your handle and password as a cookie.  Then the login form could
> automatically log you in.

Thats what it's all about.

Anyway... as normal these are all suggestions, commnts, and opinion.  Thoughts
welcome :).

Jason