From: taz at madfolk dot com
Operating system: Linux
PHP version: 4.3.4
PHP Bug Type: Session related
Bug description: PHP $_SESSION Expiring in IE 6/*
Description:
------------
Dear Whomever,
I have recently launched the new Planet-Tolkien.com.
It would appear that for Mozilla and Opera keeping a $_SESSION is not an
issue and the $_SESSION is continued until the member logs out. However
when members are using Internet Explorer browser 6 (and maybe other
versions), they can go around the site for varied amounts of time, usually
less than five to ten minutes and then their $_SESSION will expire!!??
I cannot for the life of me figure out why a server side $_SESSION would
expire on IE but not for MOZ or Opera but it is, and I need to figure out
why and how can I fix this.
I have read a similar bug report with reference to this, about hostnames
having underscores in them, but this is not the problem in our case.
REF. All login information is saved as such:
session_save_path("$path/sessions");
session_start();
//store member session information
$session_memberID=$row[id];
$session_username=$row[username];
$session_groupID=$row[membergroup];
session_register("session_memberID");
session_register("session_username");
session_register("session_groupID");
//$_SESSION['session_memberID']=$session_memberID;
//$_SESSION['session_username']=$session_username;
//$_SESSION['session_groupID']=$membergroup;
Please please please help, I truelly have tried everything!
In Fellowship,
Tarrant
Reproduce code:
---------------
// EXAMPLE CODE 1:
// member login successfull so register sessions
session_save_path("$path/sessions");
session_start();
//store member session information
$session_memberID=$row[id];
$session_username=$row[username];
$session_groupID=$row[membergroup];
session_register("session_memberID");
session_register("session_username");
session_register("session_groupID");
//$_SESSION['session_memberID']=$session_memberID;
//$_SESSION['session_username']=$session_username;
//$_SESSION['session_groupID']=$membergroup;
// EXAMPLE CODE 2: check member is logged in
Function checkLoginIn() {
if(!isset($_SESSION['session_memberID'])) {
return false;
} else {
return true;
}
}
--
Edit bug report at http://bugs.php.net/?id=26950&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26950&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26950&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26950&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26950&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26950&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26950&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26950&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26950&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26950&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26950&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26950&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26950&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26950&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26950&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26950&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26950&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26950&r=float