"John P . Looney" wrote:

>  I have all this working nicely, as well as some "You aren't logged in so
> I've provided you a nice little login box" stuff.
> 
>  if ($logout=="logout") {
>     $logout_message = "You have just logged out";
>     setcookie("OptionalPasswordCookie");
...
>  This sorta works. However, when I click logout, it seems to log me out -
> brings me back to the page I was on, and the "login box" appears. However,
> when I go back to that page later, I'm still logged in. Am I killing the
> right cookies ?

I know that the manual says what you do is right, I'd probably still do
sth. like
setcookie ("OptionalUserNameCookie", "", time() - 172800);

That way I'd be sure by a safe margin that the expire time would be in
the past
for your visitor, no matter what timezone diffs.

Emile

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to