I want to access session inside my custom library class. So please help me.
First define a variable like below
$CI =& get_instance();
Then, you can access the session library like this
$CI->session->userdata(‘id’);
Also add the session library inside the config/autoload.php file.
Username
Password
Remember Me
Lost your password?
Username or E-mail:
Log in