Re: [RFC][Discussion] Add session_gc()
| From: | Andrey Andreev | Date: | Fri, 08 Apr 2016 09:24:29 +0000 |
| Subject: | Re: [RFC][Discussion] Add session_gc() | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92166@lists.php.net to get a copy of this message | ||
Hi,
On Fri, Apr 8, 2016 at 11:38 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
> Hi Andrey,
>
> On Fri, Apr 8, 2016 at 5:02 PM, Andrey Andreev <narf@devilix.net> wrote:
> > On Fri, Apr 8, 2016 at 6:46 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
> >>
> >> ,,,
> >>
> >> >
> >> > Speaking of the documentation part - it's not hard to imagine A LOT of
> >> > people doing this:
> >> >
> >> > session_start();
> >> > session_gc();
> >> >
> >> > That's not a small problem.
> >>
> >> Shooting their own foot is not our problem, but leaving obsolete and
> >> possibly active session is ours.
> >>
> >
> > If you want to explicitly document something as a best practice, it IS
> your
> > problem when users shoot their feet with it
>
> Lack of proper API for required task is our problem. Misuse is not ours.
> IMHO.
>
I understand your POV, but you can't advertise something as a best practice
and not warn about mistakes that are easy to make - it would be indecent at
the very least.
Cheers,
Andrey.