ID:               26950
 Updated by:       [EMAIL PROTECTED]
 Reported By:      taz at madfolk dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Session related
 Operating System: Linux
 PHP Version:      4.3.4
 New Comment:

It's either bug in IE or bug in your code.
Similar stuff (when coded correctly) works fine.
For example several webshops I've done..



Previous Comments:
------------------------------------------------------------------------

[2004-01-17 21:19:21] taz at madfolk dot com

No, same problem. And the commented out session code did that previous
btw here..

//$_SESSION['session_memberID']=$session_memberID;
//$_SESSION['session_username']=$session_username;
//$_SESSION['session_groupID']=$membergroup;

However anyway, no... still getting logged out in IE.

------------------------------------------------------------------------

[2004-01-17 19:19:05] [EMAIL PROTECTED]

try:

<?php
session_start();
$_SESSION['session_memberID'] = $row[id];
$_SESSION['session_username'] = $row[username];
$_SESSION['session_groupID'] = $row[membergroup];
?>

as the documentation says:
 If you are using $_SESSION  (or $HTTP_SESSION_VARS), do not use
session_register(), session_is_registered(), and session_unregister().

The above example will do the same thing - try it.

------------------------------------------------------------------------

[2004-01-17 19:04:55] taz at madfolk dot com

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 this bug report at http://bugs.php.net/?id=26950&edit=1

Reply via email to