#36111 [NEW]: Session not saving cookie with session id defined in URL
| From: | brian dot feaver at sellingsource dot com | Date: | Fri, 20 Jan 2006 22:18:16 +0000 |
| Subject: | #36111 [NEW]: Session not saving cookie with session id defined in URL | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-92320@lists.php.net to get a copy of this message | ||
From: brian dot feaver at sellingsource dot com
Operating system: Gentoo
PHP version: 4.4.2
PHP Bug Type: Session related
Bug description: Session not saving cookie with session id defined in URL
Description:
------------
When setting PHPSESSID in the URL the session cookie is not being set.
Config Settings:
session.use_trans_sid = 0 (also tried it on)
session.use_cookies = 1
session.use_only_cookies = 0
Tried this on version 4.4.2, 4.3.3, and 5.0.4. 4.3.3 and 5.0.4 set the
cookie, 4.4.2 does not.
Reproduce code:
---------------
<?php
session_start();
?>
<html>
<body>
<p>Session ID: <?php echo session_id(); ?></p>
</body>
</html>
Expected result:
----------------
Using something like:
www.example.com/?PHPSESSID=foo
I would expect it to set a session cookie PHPSESSID with a value of foo.
Actual result:
--------------
No session cookie was created.
--
Edit bug report at http://bugs.php.net/?id=36111&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36111&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36111&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36111&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36111&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36111&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36111&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36111&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36111&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36111&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36111&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36111&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36111&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36111&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36111&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36111&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36111&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36111&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36111&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36111&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36111&r=mysqlcfg