Date: 04/17/00
- Next message: kk: "[PHPLIB-DEV] cvs commit"
- Previous message: Kristian Köhntopp: "[PHPLIB-DEV] [Fwd: [PHPLIB] blocking out class redefinitions]"
- Next in thread: kk: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: kk
Date: Mon Apr 17 18:34:21 2000
Modified files:
php-lib/CHANGES
php-lib/php/session.inc
Log message:
- Following the list discussion, I added the allowcache mode "passive".
Index: php-lib/CHANGES
diff -u php-lib/CHANGES:1.173 php-lib/CHANGES:1.174
--- php-lib/CHANGES:1.173 Thu Apr 13 15:45:10 2000
+++ php-lib/CHANGES Mon Apr 17 18:34:19 2000
@@ -1,4 +1,8 @@
-$Id: CHANGES,v 1.173 2000/04/13 13:45:10 kk Exp $
+$Id: CHANGES,v 1.174 2000/04/17 16:34:19 kk Exp $
+
+17-Apr-2000 kk
+ - Applied $allowcache = "passive" patch after list discussion,
+ made this the default.
13-Apr-2000 kk
- Bloodshed. General reorganisation of the php directory.
Index: php-lib/php/session.inc
diff -u php-lib/php/session.inc:1.63 php-lib/php/session.inc:1.64
--- php-lib/php/session.inc:1.63 Thu Apr 13 15:06:55 2000
+++ php-lib/php/session.inc Mon Apr 17 18:34:20 2000
@@ -5,7 +5,7 @@
* Copyright (c) 1998,1999 NetUSE GmbH
* Boris Erdmann, Kristian Koehntopp
*
- * $Id: session.inc,v 1.63 2000/04/13 13:06:55 kk Exp $
+ * $Id: session.inc,v 1.64 2000/04/17 16:34:20 kk Exp $
*
*/
@@ -31,10 +31,7 @@
var $secure_auto_init = 1; ## Set to 0 only, if all pages call
## page_close() guaranteed.
- var $allowcache = "no"; ## Set this to 'private' to allow private
- ## caching; set this to 'public' to allow
- ## public caching; set this to 'no' to
- ## never cache the page.
+ var $allowcache = "passive"; ## "passive", "no", "private" or "public"
var $allowcache_expire = 1440; ## If you allowcache, data expires in this
## many minutes.
var $that_class = ""; ## Name of data storage container
@@ -475,6 +472,11 @@
# in a single header(), since PHP only sends one HTTP header per
# header field-name (e.g., cache-control, Expires...)
switch ($this->allowcache) {
+
+ case "passive":
+ $mod_gmt = gmdate("D, d M Y H:i:s", getlastmod()) . " GMT";
+ header("Last-Modified: " . $mod_gmt);
+ break;
case "public":
$exp_gmt = gmdate("D, d M Y H:i:s", time() + $this->allowcache_expire * 60) . " GMT";
-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.
- Next message: kk: "[PHPLIB-DEV] cvs commit"
- Previous message: Kristian Köhntopp: "[PHPLIB-DEV] [Fwd: [PHPLIB] blocking out class redefinitions]"
- Next in thread: kk: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

