Bug #72940 [NEW]: SID always return "name=ID", even if session cookie exists

From: Date: Thu, 25 Aug 2016 10:18:18 +0000
Subject: Bug #72940 [NEW]: SID always return "name=ID", even if session cookie exists
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203537@lists.php.net to get a copy of this message
From:             archinf at archinform dot de
Operating system: 
PHP version:      7.0.10
Package:          Session related
Bug Type:         Bug
Bug description:SID always return "name=ID", even if session cookie exists

Description:
------------
---
From manual page: http://www.php.net/session.constants
---
SID:
Constant containing either the session name and session ID in the form
of "name=ID" or empty string if session ID was set in an appropriate
session cookie. 

This worked in all previous versions (up to 5.6), but after update to
php7 SID even contains value "name=ID" when a session cookie exists. 
In my PHP code cookies are used for sessions as default and as fallback
(if user disables Cookies) session ID is transferred in the URL. But now
the session ID is transferred everytime, because SID always contains
"name=ID" 


-- 
Edit bug report at https://bugs.php.net/bug.php?id=72940&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=72940&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=72940&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=72940&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72940&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72940&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72940&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72940&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72940&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72940&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72940&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=72940&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=72940&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72940&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72940&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72940&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72940&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72940&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72940&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72940&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72940&r=mysqlcfg



Thread (10 messages)

« previous php.bugs (#203537) next »