In standard PHP, I can set the session identifier as follows:
$my_session_id = $_GET['session_id']; //gets the session ID successfully session_id($my_session_id); //sets the session with my session_id session_start(); //starts session.
How can I do this with CodeIgniter? I am doing my best:
$my_session_id = $_GET['session_id']; //gets the session ID successfully $this->session->userdata('session_id', $my_session_id); //it won't set the session with my id. print_r($this->session->userdata);
Am I mistaken? Please help me as I spent several hours on this issue. If there is any problem with the SessionIgniter Session class, can I use the standard PHP code to start the session? I tried to put the standard code in CodeIgniter, but it still does not set session_id. I also set $config['sess_match_useragent'] = FALSE;
Roman source share