# [RFC Discussion] Precise session management

- Thread: https://externals.io/message/91227
- Original archive: https://news-web.php.net/php.internals/91227
- Started by Yasuo Ohgaki on 2016-02-14T00:49:14+00:00
- Messages: 6
- RFC: Precise Session Management (Declined) — https://externals.io/rfc/precise_session_management.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #91227 — Yasuo Ohgaki — 2016-02-14T00:49:14+00:00

URL: https://externals.io/message/91227#91227

Hi all,

It's been long time since the first proposal. Since session
module is important module for Web apps, I would like to
hear opinions for this RFC once again before vote.

RFC
https://wiki.php.net/rfc/precise_session_management

PR
https://github.com/php/php-src/pull/1734

Thank you.

--
Yasuo Ohgaki
yohgaki@ohgaki.net

---

## #91428 — Yasuo Ohgaki — 2016-02-26T07:09:07+00:00

URL: https://externals.io/message/91227#91428 · In reply to: #91227

Hi all,


>
> It's been long time since the first proposal. Since session
> module is important module for Web apps, I would like to
> hear opinions for this RFC once again before vote.
>
> RFC
> https://wiki.php.net/rfc/precise_session_management
>
> PR
> https://github.com/php/php-src/pull/1734

Thank you for the comment and review, Bob!
I've updated the patch. Please take a look at the PR.

I haven't changed `E_RECOVERABLE_ERROR` to exception yet.
Anyone has opinion on this? If not, I'll convert the error to exception
and start vote.

Regards,

--
Yasuo Ohgaki
yohgaki@ohgaki.net

---

## #91445 — Yasuo Ohgaki — 2016-02-28T01:38:20+00:00

URL: https://externals.io/message/91227#91445 · In reply to: #91428

Hi all,


> I haven't changed `E_RECOVERABLE_ERROR` to exception yet.
> Anyone has opinion on this? If not, I'll convert the error to exception
> and start vote.

I would like to ask what kind of exception should be raised.
Currently, we have

http://lxr.php.net/search?q=zend_throw_exception&defs=&refs=&path=&hist=&project=PHP_MASTER

Any suggestion? I don't have particular preference. I'll use null `NULL` 
ce if there is no comment.

Regards,

--
Yasuo Ohgaki
yohgaki@ohgaki.net

---

## #91523 — Yasuo Ohgaki — 2016-03-06T22:04:20+00:00

URL: https://externals.io/message/91227#91523 · In reply to: #91428

Hi all,


> > […]
>
> Thank you for the comment and review, Bob!
> I've updated the patch. Please take a look at the PR.
>
> I haven't changed `E_RECOVERABLE_ERROR` to exception yet.
> Anyone has opinion on this? If not, I'll convert the error to exception
> and start vote.

I pushed patch that converts `E_RECOVERABLE_ERROR` to zend_throw_exception*.
I'll wait a few days for review and start vote.
Thank you.

--
Yasuo Ohgaki
yohgaki@ohgaki.net

---

## #91882 — Yasuo Ohgaki — 2016-03-24T02:26:07+00:00

URL: https://externals.io/message/91227#91882 · In reply to: #91227

Hi all,


> It's been long time since the first proposal. Since session
> module is important module for Web apps, I would like to
> hear opinions for this RFC once again before vote.
>
> RFC
> https://wiki.php.net/rfc/precise_session_management
>
> PR
> https://github.com/php/php-src/pull/1734
>
> Thank you.

Vote is over and the result is  15 in favor and 11 against.
It's over half of votes, but I set 2/3 to pass, so we have to come up
to other solution for current session management problems.

I'm looking forward to hear alternatives from people vote against this RFC.

Issues are
 - Prevent race conditions.
 - Prevent session data from abuse. (Stolen session including forever)

These are allowed with current session module.

Thank you!

--
Yasuo Ohgaki
yohgaki@ohgaki.net

---

## #91884 — Yasuo Ohgaki — 2016-03-24T02:39:21+00:00

URL: https://externals.io/message/91227#91884 · In reply to: #91882

> 
> > […]
>
> Vote is over and the result is  15 in favor and 11 against.
> It's over half of votes, but I set 2/3 to pass, so we have to come up
> to other solution for current session management problems.
>
> I'm looking forward to hear alternatives from people vote against this RFC.
>
> Issues are
>  - Prevent race conditions.
>  - Prevent session data from abuse. (Stolen session including forever)
>
> These are allowed with current session module.
>
> Thank you!

I sent new mail for alternative implementation.
Please comment to new thread.

Thank you.

--
Yasuo Ohgaki
yohgaki@ohgaki.net
