• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
session problem

#1
hi i'm using ci-version 3.19 and i am having problem in session . 

sceneraio:

i have loaded session libraray in config folder and  controller.

 public function __construct() {
parent::__construct();
    $this->load->library('session'); 
   $this->load->model('product_model');
    
 }


problem: after initialising session in one controller i am n't able use the session id for another controller and  nor i am able to use it in different page.
Reply

#2
@bibash bagh,

Why don't you just autoload it (/config/autoload.php section auto-load libraries [ https://codeigniter.com/user_guide/libra...sion-class ] ) and it will always be available. This way all you have to do is reference it.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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