[Phplib-commit] CVS: php-lib-stable/php session.inc,1.12,1.13
Brought to you by:
nhruby,
richardarcher
|
From: nathan h. <nh...@us...> - 2002-01-06 15:10:49
|
Update of /cvsroot/phplib/php-lib-stable/php
In directory usw-pr-cvs1:/tmp/cvs-serv13085/php
Modified Files:
session.inc
Log Message:
fix sf bug [ #500160 ] Invalid use of (php)header function
Index: session.inc
===================================================================
RCS file: /cvsroot/phplib/php-lib-stable/php/session.inc,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** session.inc 2001/08/29 07:30:21 1.12
--- session.inc 2002/01/06 15:10:46 1.13
***************
*** 447,451 ****
header("Last-Modified: " . $mod_gmt);
header("Cache-Control: public");
! header("Cache-Control: max-age=" . $this->allowcache_expire * 60);
break;
--- 447,451 ----
header("Last-Modified: " . $mod_gmt);
header("Cache-Control: public");
! header("Cache-Control: max-age=" . $this->allowcache_expire * 60, false);
break;
***************
*** 455,460 ****
header("Last-Modified: " . $mod_gmt);
header("Cache-Control: private");
! header("Cache-Control: max-age=" . $this->allowcache_expire * 60);
! header("Cache-Control: pre-check=" . $this->allowcache_expire * 60);
break;
--- 455,460 ----
header("Last-Modified: " . $mod_gmt);
header("Cache-Control: private");
! header("Cache-Control: max-age=" . $this->allowcache_expire * 60, false);
! header("Cache-Control: pre-check=" . $this->allowcache_expire * 60, false);
break;
***************
*** 463,467 ****
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache");
! header("Cache-Control: post-check=0, pre-check=0");
header("Pragma: no-cache");
break;
--- 463,467 ----
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache");
! header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
break;
|