Req #47964 [Asn->Wfx]: session_write_open request
| From: | yohgaki@php.net | Date: | Sat, 10 Aug 2013 08:24:27 +0000 |
| Subject: | Req #47964 [Asn->Wfx]: session_write_open request | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-180845@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=47964&edit=1
ID: 47964
Updated by: yohgaki@php.net
Reported by: corin dot lawson at gmail dot com
Summary: session_write_open request
-Status: Assigned
+Status: Wont fix
Type: Feature/Change Request
Package: Session related
Operating System: *
PHP Version: *
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
I think you are able to following with current maintained PHP. (5.4/5.5)
session_start()
session_commit() // Slias of session_write_close()
session_start() // Start session again.
If not, please open new bug report (or it may be here, so search bug db before
submiting)
I also implemented session_abort() which just ends session w/o writing. It may
be useful to you. It available from 5.6 or later, though.
Previous Comments:
------------------------------------------------------------------------
[2012-03-31 03:30:50] yohgaki@php.net
This issue is related to
session_start();
seseson_write_close();
session_start();
problem.
------------------------------------------------------------------------
[2009-04-14 04:22:20] corin dot lawson at gmail dot com
Description:
------------
The function session_write_close is very useful to permit concurrent page loads by releasing the
lock on the session data ASAP. It would be useful to have a function to get that lock back and read
session data again, namely session_write_open or session_read_write_open. (Also,
session_read_only_open would be desirable for comprehensiveness.)
Currently, session_start can be used but this has the unnecessary effect of setting/sending the
cookie again.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=47964&edit=1