Date: 02/11/00
- Next message: donovan.wade <email protected>: "[PHPLIB] Rotatelogs"
- Previous message: Chris Johnson: "RE: [PHPLIB] page reload"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
session.inc seems to have a bug in the get_id() function, for the case
where $this->mode == "cookie" and $this->lifetime > 0, in that it
accesses the cookie_domain value as $this->$cookie_domain -- which
appears to have a superfluous '$'. I have attached a patch (with file
dates and version numbers from my local CVS). I haven't tested this
patch since I don't use the particular case affected; I just noticed
the problem while reading the code.
-- Fred Yankowski fred <email protected> tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA--
*** session.inc 1999/12/22 17:20:13 1.2 --- session.inc 2000/02/11 16:16:01 *************** *** 120,126 **** SetCookie($this->name, $id, 0, "/", $this->cookie_domain); } if ( 0 < $this->lifetime ) { ! SetCookie($this->name, $id, time()+$this->lifetime*60, "/", $this->$cookie_domain); } break; case "get": --- 120,126 ---- SetCookie($this->name, $id, 0, "/", $this->cookie_domain); } if ( 0 < $this->lifetime ) { ! SetCookie($this->name, $id, time()+$this->lifetime*60, "/", $this->cookie_domain); } break; case "get": - PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.
- Next message: donovan.wade <email protected>: "[PHPLIB] Rotatelogs"
- Previous message: Chris Johnson: "RE: [PHPLIB] page reload"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

