CodeIgniter Forums
session problem - Printable Version

+- CodeIgniter Forums (
+-- Forum: Using CodeIgniter (
+--- Forum: General Help (
+--- Thread: session problem (/thread-72319.html)

session problem - bibash bagh - 12-04-2018

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


i have loaded session libraray in config folder and  controller.

 public function __construct() {

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.

RE: session problem - php_rocs - 12-04-2018

@bibash bagh,

Why don't you just autoload it (/config/autoload.php section auto-load libraries [ ] ) and it will always be available. This way all you have to do is reference it.