RE: [PHP] Can't set a cookie? [SOLVED]

2002-06-15 Thread Lazor, Ed

Thanks for your help Everyone =)
 
I needed the 3rd parameter set in order to specify the fourth /, because
the cookie is being set by a script located in a sub-directory.  One of the
old documents I read said  would work as the third parameter - and it did
on my old servers.  Setting the third parameter to 0 worked on all servers.

-Original Message-

The 3rd parameter is an optional time to expire parameter, if you don't want
to set it, leave it out.  setcookie(cookiename,value);  works fine

 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Can't set a cookie? [SOLVED]

2002-06-15 Thread C

I've recently been learning about cookies myself, and had the same problem
with  vs. 0  (PHP FastEasy Web Development showed the  in their book).

I know that setting the expire parameter to 0 is supposed to kill the cookie
when browser is closed, but I can't seem to make that happen.  I've closed
all browser windows and the mail client, opened a browser again, and the
cookie is still active (let's me get back to a protected page).  Only a
full reboot seem to totally clear the cookie.

I've been using the time function instead, which is fine, but I'm just
curious why 0 doesn't seem to work.  Is there something else besides the
browser that could be holding onto the cookie?  I tried closing MSN
Messenger just in case, but it didn't make a difference.

Carol


- Original Message -
From: Ed Lazor [EMAIL PROTECTED]
Newsgroups: php.general
To: php-general [EMAIL PROTECTED]
Sent: Saturday, June 15, 2002 9:45 AM
Subject: RE: [PHP] Can't set a cookie? [SOLVED]


 Thanks for your help Everyone =)

 I needed the 3rd parameter set in order to specify the fourth /, because
 the cookie is being set by a script located in a sub-directory.  One of
the
 old documents I read said  would work as the third parameter - and it
did
 on my old servers.  Setting the third parameter to 0 worked on all
servers.

 -Original Message-

 The 3rd parameter is an optional time to expire parameter, if you don't
want
 to set it, leave it out.  setcookie(cookiename,value);  works fine




 This message is intended for the sole use of the individual and entity to
 whom it is addressed, and may contain information that is privileged,
 confidential and exempt from disclosure under applicable law.  If you are
 not the intended addressee, nor authorized to receive for the intended
 addressee, you are hereby notified that you may not use, copy, disclose or
 distribute to anyone the message or any information contained in the
 message.  If you have received this message in error, please immediately
 advise the sender by reply email and delete the message.  Thank you very
 much.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php