Date: 04/17/00
- Next message: uw: "[PHPLIB-DEV] cvs commit"
- Previous message: kk: "[PHPLIB-DEV] cvs commit"
- Next in thread: uw: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: kk
Date: Mon Apr 17 18:48:35 2000
Modified files:
php-lib-stable/CHANGES
php-lib-stable/VERSION
php-lib-stable/doc/sgml/03-session.sgml
php-lib-stable/php/session.inc
Log message:
- There is a new repository "php-lib-stable" for the 7.2b version,
whereas "php-lib" is the development version that will become 8.
- Tracking the "passive" patch for the stable version.
Index: php-lib-stable/CHANGES
diff -u php-lib-stable/CHANGES:1.1 php-lib-stable/CHANGES:1.2
--- php-lib-stable/CHANGES:1.1 Mon Apr 17 18:39:51 2000
+++ php-lib-stable/CHANGES Mon Apr 17 18:48:30 2000
@@ -1,4 +1,7 @@
-$Id: CHANGES,v 1.1 2000/04/17 16:39:51 kk Exp $
+$Id: CHANGES,v 1.2 2000/04/17 16:48:30 kk Exp $
+
+17-Apr-2000 kk
+ - Added allowcache mode "passive".
23-Mar-2000 kk
- VERSION is 7.2b
Index: php-lib-stable/VERSION
diff -u php-lib-stable/VERSION:1.1 php-lib-stable/VERSION:1.2
--- php-lib-stable/VERSION:1.1 Mon Apr 17 18:39:53 2000
+++ php-lib-stable/VERSION Mon Apr 17 18:48:30 2000
@@ -1 +1 @@
-7.2b
+7.2c
Index: php-lib-stable/doc/sgml/03-session.sgml
diff -u php-lib-stable/doc/sgml/03-session.sgml:1.1 php-lib-stable/doc/sgml/03-session.sgml:1.2
--- php-lib-stable/doc/sgml/03-session.sgml:1.1 Mon Apr 17 18:40:02 2000
+++ php-lib-stable/doc/sgml/03-session.sgml Mon Apr 17 18:48:32 2000
@@ -1,4 +1,4 @@
-<!-- $Id: 03-session.sgml,v 1.1 2000/04/17 16:40:02 kk Exp $ -->
+<!-- $Id: 03-session.sgml,v 1.2 2000/04/17 16:48:32 kk Exp $ -->
<sect1>Session
<p>
@@ -23,7 +23,7 @@
lifetime <colsep>Lifetime of the session cookie in minutes or 0 to use session cookies.<rowsep>
gc_time<colsep>Garbage collection tuning parameter, see below.<rowsep>
gc_probability<colsep>Garbage collection tuning parameter, see below.<rowsep>
-allowcache<colsep>Control caching of session pages, if set to <tt/no/ (also the default), the page is not cached under HTTP/1.1 or HTTP/1.0; if set to <tt/public/ , the page is publically cached under HTTP/1.1 and HTTP/1.0; if set to <tt/private/ , the page is privately cached under HTTP/1.1 and not cached under HTTP/1.0<rowsep>
+allowcache<colsep>Control caching of session pages. If set to <tt/passive/ (also the default), no cache-control headers are being sent. If set to <tt/no/, the page is not cached under HTTP/1.1 or HTTP/1.0; if set to <tt/public/ , the page is publically cached under HTTP/1.1 and HTTP/1.0; if set to <tt/private/ , the page is privately cached under HTTP/1.1 and not cached under HTTP/1.0<rowsep>
allowcache_expire<colsep>When caching is allowed, the pages can be cached for this many minutes.<rowsep>
that_class<colsep>A classname. Session uses this class to store and retrieve data.<rowsep>
auto_init<colsep>The file to be loaded on session establishment.<rowsep>
Index: php-lib-stable/php/session.inc
diff -u php-lib-stable/php/session.inc:1.1 php-lib-stable/php/session.inc:1.2
--- php-lib-stable/php/session.inc:1.1 Mon Apr 17 18:40:13 2000
+++ php-lib-stable/php/session.inc Mon Apr 17 18:48:33 2000
@@ -5,7 +5,7 @@
* Copyright (c) 1998,1999 SH Online Dienst GmbH
* Boris Erdmann, Kristian Koehntopp
*
- * $Id: session.inc,v 1.1 2000/04/17 16:40:13 kk Exp $
+ * $Id: session.inc,v 1.2 2000/04/17 16:48:33 kk Exp $
*
*/
@@ -30,10 +30,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", "public"
var $allowcache_expire = 1440; ## If you allowcache, data expires in this
## many minutes.
var $that_class = ""; ## Name of data storage container
@@ -420,6 +417,12 @@
# see http://msdn.microsoft.com/workshop/author/perf/perftips.asp#Use%20Cache-Control%20Extensions
# for details
switch ($this->allowcache) {
+
+ case "passive":
+ $mod_gmt = gmdate("D, d M Y H:i:s", getlastmod()) . " GMT";
+ header("Last-Modified: " . $mod_gmt);
+ # possibly ie5 needs the pre-check line. This needs testing.
+ 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: uw: "[PHPLIB-DEV] cvs commit"
- Previous message: kk: "[PHPLIB-DEV] cvs commit"
- Next in thread: uw: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

