Aidan (and Richard and others) --

...and then Aidan Lister said...
% 
% Hi,

Hi!


% 
% Richards email was kinda wierd, so I'll reply to your email directly

Thanks :-)  And, while I appreciated it, I didn't get a lot from it.

Of course, this one basically says "just read the manual", so I'm not
getting a *whole* lot from it, either!


% 
...
% Okay, simple:
% 
% <?php
% if (isset($_COOKIE['yourcookie'])) { // they have the login cookie, so do
% what you called "log them in", whatever that means }
% else { // they are not logged in, so include your login page }
% ?>

Aha!  Perhaps I was unclear.  I'm sorry; it was late :-)

When the surfer returns to the page tomorrow or next week or in a month,
I want to see that I have stored his acct info in a cookie on his machine
so that I can automatically log him in rather than requiring that he type
his name and pass again.  There is a "remember me" type of checkbox on
the login page so that he can tell me to save the info for next time.

*That* is what I can't seem to grasp...  If I set the cookie, then I'm
stepping on the old value and so I can't automatically log him in (or
at least as I understand it, and I certainly haven't seen anything in
$_COOKIE to make me think otherwise).

Perhaps now I've given everyone better info on which to base a response :-)


TIA again & HAND

:-D
-- 
David T-G
[EMAIL PROTECTED]
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to