[Phplib-commit] CVS: php-lib/php/session session4.inc,1.15,1.16
Brought to you by:
nhruby,
richardarcher
From: Maxim D. <md...@us...> - 2002-11-27 08:02:32
|
Update of /cvsroot/phplib/php-lib/php/session In directory sc8-pr-cvs1:/tmp/cvs-serv2408 Modified Files: session4.inc Log Message: $_SERVER -> $HTTP_SERVER_VARS Index: session4.inc =================================================================== RCS file: /cvsroot/phplib/php-lib/php/session/session4.inc,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** session4.inc 26 Nov 2002 17:39:57 -0000 1.15 --- session4.inc 27 Nov 2002 08:02:29 -0000 1.16 *************** *** 140,143 **** --- 140,148 ---- var $allowcache = 'nocache'; + /** + * @var boolean + * @access private + */ + var $register_globals; /** *************** *** 226,236 **** cause it will disappear with the next request */ ! if(strpos($_SERVER['PHP_SELF'], $mysid)) { // cut session info from PHP_SELF ! $new_qs = 'http://'.$_SERVER['SERVER_NAME'] ! . str_replace($mysid, '', $_SERVER['PHP_SELF']) ! .(($_SERVER['QUERY_STRING']) // and QUERY_STRING, for sure ! ? '?'.str_replace($mysid, '', $_SERVER['QUERY_STRING']) : ''); --- 231,241 ---- cause it will disappear with the next request */ ! if(strpos($HTTP_SERVER_VARS['PHP_SELF'], $mysid)) { // cut session info from PHP_SELF ! $new_qs = 'http://'.$HTTP_SERVER_VARS['SERVER_NAME'] ! . str_replace($mysid, '', $HTTP_SERVER_VARS['PHP_SELF']) ! .(($HTTP_SERVER_VARS['QUERY_STRING']) // and QUERY_STRING, for sure ! ? '?'.str_replace($mysid, '', $HTTP_SERVER_VARS['QUERY_STRING']) : ''); |