Bug #78155 [NEW]: session_start doesn't create session
| From: | liangjian at oliveche dot com | Date: | Thu, 13 Jun 2019 08:09:57 +0000 |
| Subject: | Bug #78155 [NEW]: session_start doesn't create session | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-221268@lists.php.net to get a copy of this message | ||
From: liangjian at oliveche dot com
Operating system: CentOS 7
PHP version: 7.2.19
Package: Session related
Bug Type: Bug
Bug description:session_start doesn't create session
Description:
------------
---
From manual page: https://php.net/function.session-start
---
Request A and B are sent from the same browser at the same time (A prior
to B) and use the same cookie.
A destroys session and B writes session in sequence.
B is blocked on 'session_start' and resumes after A destroys the
session, but it does not create session or save the session variables.
Test script:
---------------
request A:
session_start();
sleep(5);
session_destroy();
request B:
// B will be blocked by A on the session file
session_start(); // !!!return ok but not session file!!!
// resume until A destroys(releases) it. but no session file and
the 'uid' cannot save.
$_SESSION["uid"] = 1;
Expected result:
----------------
The session file exists and session variable 'uid' is saved.
Actual result:
--------------
No session file.
--
Edit bug report at https://bugs.php.net/bug.php?id=78155&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78155&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78155&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78155&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78155&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78155&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78155&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78155&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78155&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78155&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78155&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78155&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78155&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78155&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78155&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78155&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78155&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78155&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78155&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78155&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78155&r=mysqlcfg