Welcome Guest, Not a member yet? Register   Sign In
Code Igniter Session problem
#4

[eluser]Unknown[/eluser]
yes! IE is set to accept cookies. and i told earlier that the system is running fine in IE in my local machine but the problem occurs on the client server.

let me show you the code..

i have a model name Login
Code:
class Login extends Model
{
   var $isAuth = false;

   function Login()
   {
      parent::Model();
   }

   function authenticate()
   {
      ...........;
      ...........;
      if($isAuth){
         $userdata = array(
           'userid'=> $recordSet->userid;
           'role'=> $recordSet->role;          
         );
         $this->session->set_userdata($userdata);
         ..............;
         ..............;
      }
   }
}

From a controller class i am trying to pull some data

Code:
class Members extends Controller
{
   function Members()
   {
       parent::Controller();
   }

   function showMemberData()
   {
       $this->db->where("userid", $this->session->userdata("userid"));//this line fails as it couldnt retrieve the userid in IE in my client server.
       $query = $this->db->get("users");
       .......;
       .......;
   }
}

Any idea about this?


Messages In This Thread
Code Igniter Session problem - by El Forum - 10-22-2007, 08:29 AM
Code Igniter Session problem - by El Forum - 10-22-2007, 09:42 AM
Code Igniter Session problem - by El Forum - 10-22-2007, 10:05 AM
Code Igniter Session problem - by El Forum - 10-23-2007, 12:12 AM
Code Igniter Session problem - by El Forum - 10-23-2007, 02:34 AM
Code Igniter Session problem - by El Forum - 11-07-2007, 07:31 PM
Code Igniter Session problem - by El Forum - 11-22-2007, 09:18 AM
Code Igniter Session problem - by El Forum - 11-22-2007, 12:29 PM
Code Igniter Session problem - by El Forum - 11-24-2007, 08:26 PM
Code Igniter Session problem - by El Forum - 11-24-2007, 08:45 PM
Code Igniter Session problem - by El Forum - 11-24-2007, 09:33 PM
Code Igniter Session problem - by El Forum - 11-25-2007, 03:56 AM
Code Igniter Session problem - by El Forum - 11-25-2007, 08:12 AM
Code Igniter Session problem - by El Forum - 02-26-2008, 08:46 AM
Code Igniter Session problem - by El Forum - 02-26-2008, 12:42 PM
Code Igniter Session problem - by El Forum - 04-21-2008, 10:11 PM
Code Igniter Session problem - by El Forum - 04-28-2008, 03:48 PM
Code Igniter Session problem - by El Forum - 05-20-2008, 12:16 PM
Code Igniter Session problem - by El Forum - 08-01-2008, 03:38 PM
Code Igniter Session problem - by El Forum - 09-16-2008, 11:44 AM
Code Igniter Session problem - by El Forum - 07-31-2009, 01:59 PM
Code Igniter Session problem - by El Forum - 08-27-2009, 05:20 PM
Code Igniter Session problem - by El Forum - 10-17-2009, 12:28 AM
Code Igniter Session problem - by El Forum - 11-30-2009, 09:06 PM
Code Igniter Session problem - by El Forum - 01-18-2010, 11:47 PM
Code Igniter Session problem - by El Forum - 03-02-2010, 09:34 AM
Code Igniter Session problem - by El Forum - 10-05-2010, 05:30 AM
Code Igniter Session problem - by El Forum - 10-05-2010, 08:16 AM
Code Igniter Session problem - by El Forum - 10-06-2010, 08:20 AM
Code Igniter Session problem - by El Forum - 10-06-2010, 09:12 AM
Code Igniter Session problem - by El Forum - 10-09-2010, 11:04 AM
Code Igniter Session problem - by El Forum - 10-25-2010, 08:52 AM
Code Igniter Session problem - by El Forum - 11-03-2010, 03:47 AM
Code Igniter Session problem - by El Forum - 11-03-2010, 10:32 AM
Code Igniter Session problem - by El Forum - 11-18-2010, 01:05 PM
Code Igniter Session problem - by El Forum - 11-18-2010, 01:45 PM
Code Igniter Session problem - by El Forum - 11-18-2010, 02:06 PM
Code Igniter Session problem - by El Forum - 11-18-2010, 03:52 PM
Code Igniter Session problem - by El Forum - 01-18-2011, 04:40 AM
Code Igniter Session problem - by El Forum - 01-20-2011, 03:14 AM
Code Igniter Session problem - by El Forum - 04-30-2011, 07:05 PM
Code Igniter Session problem - by El Forum - 04-30-2011, 11:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB