Bug #79295 [NEW]: Gecko/Firefox Session Mutation Bug
| From: | jab_creations at yahoo dot com | Date: | Sat, 22 Feb 2020 08:02:16 +0000 |
| Subject: | Bug #79295 [NEW]: Gecko/Firefox Session Mutation Bug | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-225662@lists.php.net to get a copy of this message | ||
From: jab_creations at yahoo dot com
Operating system: Windows 7/10
PHP version: 7.3.15
Package: Session related
Bug Type: Bug
Bug description:Gecko/Firefox Session Mutation Bug
Description:
------------
A major bug that only effects Gecko browsers (e.g. Firefox, Waterfox)
refuses to remember the session across page loads. As my software
requires a session to view pages visitors afflicted by this bug are
unable to access the website at all. In the interim I have setup an
error-handler page explaining the technical issue along with displaying
the session id so they can see the issue. Most people reload the page
until they pass the system tolerance level and they get a nonrelated
error for up to half an hour. If you are thoroughly testing the issue I
highly recommend a VPN that can generate a lot of different IP addresses
to avoid having to wait to resume testing once you've exceeded the
system tolerance.
This can be tested at jabcreations.com only with Gecko based browsers.
I have not been able to determine the exact cause of this as this issue
as it appeared in the middle of a major project though the issue has
naturally gotten progressively worse.
Test script:
---------------
PHP script initiation:
ini_set('session.cookie_secure', 1);
ini_set('session.gc_maxlifetime', 3600);
session_set_cookie_params(3600);
ini_set('session.cookie_httponly', 1);
ini_set('session.cookie_samesite','Strict');
ini_set('session.use_only_cookies', 1);
session_name('session');
session_start();
php.ini settings:
[Session]
session.save_handler = files
session.save_path = "/tmp"
session.use_cookies = 1
session.use_only_cookies = 1
session.auto_start = 0
session.cookie_lifetime = 1800
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1800
session.bug_compat_42 = Off
session.bug_compat_warn = Off
session.referer_check =
session.entropy_length = 0
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
Expected result:
----------------
Sessions should not mutate or be lost.
Actual result:
--------------
Gecko browsers mostly forget the generated session and therefore every
single request a new session is generated.
--
Edit bug report at https://bugs.php.net/bug.php?id=79295&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79295&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79295&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79295&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79295&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79295&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79295&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79295&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79295&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79295&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79295&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79295&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79295&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79295&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79295&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79295&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79295&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79295&r=mysqlcfg