note 11302 added to Session handling functions
| From: | yasuo_ohgaki at hotmail dot com | Date: | Thu, 15 Feb 2001 05:29:36 +0000 |
| Subject: | note 11302 added to Session handling functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11093@lists.php.net to get a copy of this message | ||
Correction about object as session var:
Constants are must be defined before session_start(), when class vars uses user defined constats.
[PHP4.0.4pl1]
define('C1',1);
class foo {
var $const = C1;
}
start_session();
to avoid treat C1 as string.
http://www.php.net/manual/en/ref.session.php