From: divino dot codino at gmail dot com
Operating system: Windows 2000
PHP version: 4.4.1
PHP Bug Type: Session related
Bug description: Session Variables Lost with Folder Traverse
Description:
------------
there is a problem with session variables management on my hosting
solution . my hosting solution is runnig under windows 2000 and IIS 5.x
and i cannot change the hosting plan at this time , the bug is that my
session variables are set when i moves between pages in same folder in
which i have set the session but when i travese to a page which is in the
subdirectory somehow my session variables are lost and they appear again
when i jump to parent directory .... this problem is only under windows
2000 because i am running windows xp and IIS 6 on my home PC and the
session variables are working fine reagrdless of how much i traverse ....
can i remove this bug somehow on windows 2000 .... following is the code
i am using to check to initialize and check session variables .... my
session.cookie_path = / is set and u can vies my php.ini at
www.smartqatar.com/test.php
Reproduce code:
---------------
////// to initialize session variables
$row = $db->sql_fetchrow($result);
setcookie("loggedin", "TRUE", time()+(3600 * 24));
setcookie("mysite_username", "$username");
echo "You are now logged in!<br>";
session_start();
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
$_SESSION['fullname'] = $row['fullname'];
///// to chech session variables
session_start();
session_cache_limiter('private');
header("Cache-control: private");
// session variables are not set
if (isset($_SESSION['username']) && isset($_SESSION['password']))
{
$username = $_SESSION['username'] ;
$password = $_SESSION['password'] ; }
Expected result:
----------------
session variables should be under windows 2000
--
Edit bug report at http://bugs.php.net/?id=35596&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=35596&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=35596&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=35596&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35596&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=35596&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35596&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35596&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35596&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35596&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35596&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=35596&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=35596&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35596&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35596&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35596&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35596&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35596&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35596&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35596&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35596&r=mysqlcfg