Re: [PHP-DB] Re: setting cookies so the cookie will expire when the user's session ends.

2001-07-05 Thread Ken Sommers

Kelvin,
thanks,

do you believe or hopefully even know that that expiration time for this
cookie:

setcookie (TestCookie, $value,time()+3600);  /* expire in 1 hour */

will be one hour after the cookie is set OR
one hour after the session expires?

Ken

Kelvin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi Ken,

  Do not specific the time in your cookie.

 ex: setcookie(usercookie,$username);
 once the user close the session, it will terminate the cookie.

 Kelvin.


 Ken Sommers [EMAIL PROTECTED] wrote in message
 001701c1056d$2cb7c620$ca42500c@zeospantera">news:001701c1056d$2cb7c620$ca42500c@zeospantera...
  Hello,
  any way to set cookies so the cookie will expire when the user's session
  ends.
 
  IN PHP 4?
 
  Ken
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


- Original Message -
From: Kelvin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 3:11 PM
Subject: [PHP-DB] Re: setting cookies so the cookie will expire when the
user's session ends.


 Hi Ken,

  Do not specific the time in your cookie.

 ex: setcookie(usercookie,$username);
 once the user close the session, it will terminate the cookie.

 Kelvin.


 Ken Sommers [EMAIL PROTECTED] wrote in message
 001701c1056d$2cb7c620$ca42500c@zeospantera">news:001701c1056d$2cb7c620$ca42500c@zeospantera...
  Hello,
  any way to set cookies so the cookie will expire when the user's session
  ends.
 
  IN PHP 4?
 
  Ken
 



 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] Re: setting cookies so the cookie will expire when the user's session ends.

2001-07-05 Thread Beau Lebens

one hour after the cookie is set, the session won't expire as such until
either

1. the user closes their browser and destroys temporary cookies (not the
case if you set expiry time)
2. the expiry time is reached
3. you determine from some other method (i.e. a different variable is set to
fale or something) that their session is no longer 'valid'


// -Original Message-
// From: Ken Sommers [mailto:[EMAIL PROTECTED]]
// Sent: Friday, 6 July 2001 1:43 PM
// To: PHP DB Mailing List
// Subject: Re: [PHP-DB] Re: setting cookies so the cookie will 
// expire when
// the user's session ends. 
// 
// 
// Kelvin,
// thanks,
// 
// do you believe or hopefully even know that that expiration 
// time for this
// cookie:
// 
// setcookie (TestCookie, $value,time()+3600);  /* expire in 1 hour */
// 
// will be one hour after the cookie is set OR
// one hour after the session expires?
// 
// Ken
// 
// Kelvin [EMAIL PROTECTED] wrote in message
// [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
//  Hi Ken,
// 
//   Do not specific the time in your cookie.
// 
//  ex: setcookie(usercookie,$username);
//  once the user close the session, it will terminate the cookie.
// 
//  Kelvin.
// 
// 
//  Ken Sommers [EMAIL PROTECTED] wrote in message
//  001701c1056d$2cb7c620$ca42500c@zeospantera">news:001701c1056d$2cb7c620$ca42500c@zeospantera...
//   Hello,
//   any way to set cookies so the cookie will expire when 
// the user's session
//   ends.
//  
//   IN PHP 4?
//  
//   Ken
//  --
//  PHP Database Mailing List (http://www.php.net/)
//  To unsubscribe, e-mail: [EMAIL PROTECTED]
//  For additional commands, e-mail: [EMAIL PROTECTED]
//  To contact the list administrators, e-mail: 
// [EMAIL PROTECTED]
// 
// 
// - Original Message -
// From: Kelvin [EMAIL PROTECTED]
// To: [EMAIL PROTECTED]
// Sent: Thursday, July 05, 2001 3:11 PM
// Subject: [PHP-DB] Re: setting cookies so the cookie will 
// expire when the
// user's session ends.
// 
// 
//  Hi Ken,
// 
//   Do not specific the time in your cookie.
// 
//  ex: setcookie(usercookie,$username);
//  once the user close the session, it will terminate the cookie.
// 
//  Kelvin.
// 
// 
//  Ken Sommers [EMAIL PROTECTED] wrote in message
//  001701c1056d$2cb7c620$ca42500c@zeospantera">news:001701c1056d$2cb7c620$ca42500c@zeospantera...
//   Hello,
//   any way to set cookies so the cookie will expire when 
// the user's session
//   ends.
//  
//   IN PHP 4?
//  
//   Ken
//  
// 
// 
// 
//  --
//  PHP Database Mailing List (http://www.php.net/)
//  To unsubscribe, e-mail: [EMAIL PROTECTED]
//  For additional commands, e-mail: [EMAIL PROTECTED]
//  To contact the list administrators, e-mail: 
// [EMAIL PROTECTED]
// 
// 
// 
// 
// -- 
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, e-mail: [EMAIL PROTECTED]
// For additional commands, e-mail: [EMAIL PROTECTED]
// To contact the list administrators, e-mail: 
// [EMAIL PROTECTED]
// 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]