How to retrieve a particular session value in codeigniter?
My variable is “USERID”
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
$userid = $this->session->userdata(‘USERID’);
Here is the syntax you can try it.
$user_id = $this->session->userdata('user_id');