Re: [RFC][VOTE] Add session_create_id() function
| From: | Yasuo Ohgaki | Date: | Fri, 12 Aug 2016 09:22:51 +0000 |
| Subject: | Re: [RFC][VOTE] Add session_create_id() function | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-95071@lists.php.net to get a copy of this message | ||
Hi Lester,
On Fri, Aug 12, 2016 at 6:12 PM, Lester Caine <lester@lsces.co.uk> wrote:
> On 12/08/16 09:23, Yasuo Ohgaki wrote:
>> I don't think it's framework job to do.
>
> This was a little 'tongue in cheek' ... my main thought was simply that
> you need a variable 'session_id' and other processes may benefit from a
> similarly constrained variable, so an intelligent variable could be
> envisaged that has the code for creating that value. In any case if the
> session code creates the variable, you want to ensure that nothing else
> modifies it, so $session_id variable should be read_only and blocked
> from accidentally escaping it, so even though it is generated within the
> session code it's result needs to follow some rules.
I see. I think it's good to have intelligent scalar if costs/overheads
are little.
Anyway, thank you for the comment. There may be people that thinks
session_create_id() should be a part of framework or user code.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net