Re: Namespace issues
| From: | Martin Jansen | Date: | Thu, 16 May 2002 11:53:12 +0000 |
| Subject: | Re: Namespace issues | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6134@lists.php.net to get a copy of this message | ||
On Thu, 16 May 2002 13:18:16 +0200, Sebastian Bergmann wrote:
>Kristian Koehntopp wrote:
>> Should PEAR classes start sessions themselves or should the session
>> management configuration be left to the PEAR class user
>> (administrator/developer) and only be noted as a requirement?
>
> Just use session_register('var') and $_SESSION['var'] and you're
> fine.
This will possibly interfere with existing code. IMO it would be
much better to find a standardized way for naming session variables
in PEAR ($_SESSION['_PEAR_<package>_<name>'] sounds reasonable for
me).
- Martin