cvs: /php4/ext/session session.c

From: Date: Sun, 26 Mar 2000 00:44:27 +0000
Subject: cvs: /php4/ext/session session.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-12609@lists.php.net to get a copy of this message
sas Sat Mar 25 16:44:27 2000 EDT Modified files: /php4/ext/session session.c Log: Add MSIE 5-specific Cache-Control fields Index: php4/ext/session/session.c diff -u php4/ext/session/session.c:1.118 php4/ext/session/session.c:1.119 --- php4/ext/session/session.c:1.118 Mon Mar 13 07:49:13 2000 +++ php4/ext/session/session.c Sat Mar 25 16:43:56 2000 @@ -526,7 +526,7 @@ char buf[MAX_STR + 1]; ADD_COOKIE("Expires: Thu, 19 Nov 1981 08:52:00 GMT"); - sprintf(buf, "Cache-Control: private, max-age=%d", PS(cache_expire) * 60); + sprintf(buf, "Cache-Control: private, max-age=%d, pre-check=%d", PS(cache_expire) * 60, PS(cache_expire) * 60); ADD_COOKIE(buf); last_modified(); @@ -535,8 +535,8 @@ CACHE_LIMITER_FUNC(nocache) { ADD_COOKIE("Expires: Thu, 19 Nov 1981 08:52:00 GMT"); - /* For HTTP/1.1 conforming clients */ - ADD_COOKIE("Cache-Control: no-cache"); + /* For HTTP/1.1 conforming clients and the rest (MSIE 5) */ + ADD_COOKIE("Cache-Control: no-cache, post-check=0, pre-check=0"); /* For HTTP/1.0 conforming clients */ ADD_COOKIE("Pragma: no-cache"); }

« previous php.version4 (#12609) next »