Getting Session Id in CodeIgniter

CodeIgniter does not use native PHP sessions. It uses cookies to manage the sessions by tracking IP address , User agent , Hash Session Id .

This is how we can retrieve the Session Id in CodeIgniter

         $this->session->userdata('session_id');
1,218 views
CodeIgniter

Leave Comment

(required)

(required)