• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
session data lost after redirect

#3
(01-28-2016, 05:38 AM)sv3tli0 Wrote: I purpose you to use CI session methods as:
PHP Code:
// To get specific userdata
$this->session->userdata('item');
// If you want to specify the item
$this->session->item

Can you show what exactly you set and how you redirect..

Yes this is my code in  login_model 

            $data =  $this->public_model->DB_Action('get','user_profile',
                array('upro_uacc_fk' => $current_user_id))->row_array();
            $this->session->set_userdata('user_pro',$data);

            redirect('admin');

and i check   in admin Controller

print_r($this->session->all_userdata());
Reply


Messages In This Thread
session data lost after redirect - by sdfarshid - 01-28-2016, 02:35 AM
RE: session data lost after redirect - by sv3tli0 - 01-28-2016, 05:38 AM
RE: session data lost after redirect - by sdfarshid - 05-17-2017, 11:36 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.