Re: [RFC][Discussion] Add session_create_id()
| From: | Stanislav Malyshev | Date: | Thu, 07 Apr 2016 16:59:15 +0000 |
| Subject: | Re: [RFC][Discussion] Add session_create_id() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92133@lists.php.net to get a copy of this message | ||
Hi!
> Session ID can be non HEX strings. session_create_id() makes custom
> session ID creation easier.
> https://wiki.php.net/rfc/session-create-id
>
> Please note that the implementation was in the session.c years ago.
> The patch enables and add test for it.
I like the idea, but I would add a bit more details - where the ID comes
from? Can I control it, and if so, how? Is uniqueness ensured and if
not, how one is recommended to deal with it? Some code examples would
help too. Some of it may be obvious to people who have been discussing
session stuff for years now, but the RFC should be accessible to
everybody, not just those participating is specific discussion. Ideally,
one should be able to understand the RFC by knowing only what the PHP
manual says and reading the RFC text.
Thanks,
--
Stas Malyshev
smalyshev@gmail.com