RE: [PHP] session issues on ie
| From: | Vincent DUPONT | Date: | Wed, 29 Nov 2006 06:31:59 +0000 |
| Subject: | RE: [PHP] session issues on ie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245264@lists.php.net to get a copy of this message | ||
Hi,
do you have any access to the client computers (is it an intranet)? If so, check yourself the
existence of the cookie and check JS and cookie settings on their browser.From my own experience,
you should never truct the user's comments about their config or actions...
Otherwise, you could make a simple session_test.php pages that will test the session_id() values.
simply put session_start();
then print the session_id();
If the session is ok, then the users should see the same session id on every successive refresh
(F5). If they don't see the same ID, then, they have a problem.
If they have a problem for Ie only, I only see the cookie reason.
good luck
vincent
-----Original Message-----
From: blackwater dev [mailto:blackwaterdev@gmail.com]
Sent: Tue 28/11/2006 22:47
To: php-general@lists.php.net
Subject: [PHP] session issues on ie
I have code which logs someone in and then allows them to see certain info
if they are logged in. I have users who claim it works fin in some of their
browsers, firefox, safari, etc and some versions of IE but not all and I'm
stumped.
Here's the code:
//this is from the login routine
if ($this->db->getField('user_id')){
session_start();
$_SESSION['user']['user_id']=$this->db->getField('user_id');
$_SESSION['user']['email']=$this->db->getField('email');
return true;
}
<?
//only show if they are logged in
if (isset($_SESSION['user']['user_id']) &&
!$_REQUEST['mlsid']){
//show something
}
?>
People are claiming it tells them they are logged in yet they don't see what
is displayed under the code which checks their session. For some reason,
sessions don't seem to be there on all browsers yet they claim that cookies
and all are on.
Any ideas?
Thanks!