note 11301 added to Session handling functions
| From: | yasuo_ohgaki at hotmail dot com | Date: | Thu, 15 Feb 2001 03:58:10 +0000 |
| Subject: | note 11301 added to Session handling functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11092@lists.php.net to get a copy of this message | ||
FYI:
1)PHP4 Session can store objects as session vars. However, you may need to define classes before
session_start().
2)You also should not use constants as class var initializer. PHP4 tris to treat as string, not
constant.
define ('CONST',1);
class foo {
var $const = CONST;
}
This kind of definition will not work as expected.
3) Resource type (like database link id, etc) will not saved. (These resouces are useless session to
session, anyway)
http://www.php.net/manual/en/ref.session.php