Re: session_reset() and session_abort() to send errors
Hi all,
On Wed, Mar 26, 2014 at 6:57 PM, Julien Pauli <[email protected]> wrote:
> Yup, I agree that I dont really see a use case for session_reset().
> The implementation looks strange.
>
> Yasuo, could you clarify please ?
>
This function is useful for session save handlers that do not lock
session data. Example is memcached. This function could be used
re-read session data to mitigate over written session data with unlock
session data.
Andrey, just because you don't think of usage, it does not mean it does not
mean unneeded or not useful. You are better to ask the reason behind why
first.
Good library should have defined API for specific tasks, too. You also has
misunderstanding about why delayed deletion for session_regenerate_id()
is mandatory.
BTW, raising errors for invalid calls has issues, so I send PR to discuss.
https://github.com/php/php-src/pull/634
Regards,
P.S. If I should choose to remove this or session_gc(), I choose this
because
session_gc() is mandatory API for decent session manager.
--
Yasuo Ohgaki
[email protected]
Thread (15 messages)