Re: Session management module - thoughts
| From: | Stig Bakken | Date: | Fri, 28 May 1999 16:11:25 +0000 |
| Subject: | Re: Session management module - thoughts | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-6170@lists.php.net to get a copy of this message | ||
On Fri, 28 May 1999, Zeev Suraski wrote:
>
> Hey,
>
> Looking at PHP 4.0, one of the only major issues in which it falls behind
> ASP is internal session management.
> I know Rasmus always said this stuff belongs in user space, but basically,
> my opinion is that anything that more than a few people use, is better off
> being written in native C.
>
> [...]
>
> What I have in mind is a KISS approach to sessions, through a built-in PHP
> module. For information storage - use files. Implement functions that
> start a session, that add variables to a session, and possibly that end a
> session. At request_shutdown, simply store all variables that were
> registered as session varaibles in a file, named after a unique key that's
> generated by the session starter, and passed along through cookies (I
> think it'll be fair to rely on cookies, and point people that don't trust
> cookies to phplib's session support).
>
> In essence, assuming we have working serialize functions, all we have to
> implement is file locking support and something that will clean up old
> sessions, neither of which are beyond us.
>
> What do you guys say?
I think this is a very good approach, implementing a simple but not
necessarily optimal mechanism first. An improved version will no doubt
"show up" for a feature as useful as this one.
- Stig
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net