Part of the EllisLab Network

Bug Report

Session Wont Set in IE7

Date: 05/12/2008 Severity: Major
Status: Unconfirmed Reporter: Popcorn
Version: 1.6.1
Keywords: Libraries, Session Class

Description

A session variable wont be set with IE7 if the session cookie name has an underscore in it.

This is a strange bug, at first I was thought to of believed it was a server side issue (clock out of sync). The tech support however did a test and it worked fine for them.

There are different results from different people. Hmmm

Code Sample

function login ($email, $password)
    
{
        $result
= $this->_get_hash($this->users_table, $email); // Grab hash, password, and id from database.

        
if ($result) // Result Found
        
{
            $password
= sha1(sha1($this->salt.$result->hash.$password)); // Hash input password

            
if ($password === $result->password) // Passwords match?
            
{
                $this
->ci->session->set_userdata(array('id'=> $result->id));

                return
true;
            
}
        }
        
        
return false;
    
}

Then I check the login like so
:

function
logged_in ()
    
{
        
return $var = ($this->ci->session->userdata('id')) ? true : false;
    
}

Expected Result

bool(true)

Actual Result

bool(false) IE7
bool(true) FF

Comment on Bug Report

Page 1 of 1 pages
Posted by: Popcorn on 12 May 2008 7:50pm
no avatar

Topic : http://codeigniter.com/forums/viewthread/79297/

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?