Hi i have this new type of problem it is that my codeignitor sessions not work in other functions in controller
for example my login3 function
\\Data is coming from here fine
foreach($query as $row)
{
$name = $row->name;
$id = $row->id;
$dmail = $row->email;
}
if(isset($dmail))
{
$arr = array();
$arr['name'] = $name;
$arr['id'] = $id;
$arr['email'] = $email;
$this->session->set_userdata("facebooker",$arr);
$this->load->model('Gift');
$this->load->library('session');
$der = $this->session->userdata("facebooker");
$arrr = array();
$arrr['unamer'] = $der['name'];
$arrr['ids'] = $der['id'];
$arrr['email'] = $der['email'];
//After loading the views all data shows fine
$this->load->view("gifttoday/header",$arrr);
$this->load->view("gifttoday/welcome",$arrr);
}
But when i call the same session in this function but in same controller it shows no data
function profileselect()
{
$this->load->model('Gift');
$var =array();
$this->load->library('session');
// Here i call this session but no data
$mer = $this->session->userdata("facebooker");
// When i print all the values of $mer it shows empty array
var_dump($mer);
/**
$this->load->view("gifttoday/header",$arrr);
$this->load->view("gifttoday/profilev",$arrr);
**/
}
I have searched this problem and my people are having this problem with codeignitor sessions but non of the fixes worked for me can any body help me with this.