title: Session not working on CodeIgniter
body: <p>Hi guys my session is not working on CodeIgniter, please help.. Following is my config</p>
  
  <pre><code>$config['sess_driver'] = 'database';
  $config['sess_cookie_name'] = 'ci_session';
  $config['sess_expiration'] = 7200;
  $config['sess_save_path'] = 'ci_sessions';
  $config['sess_match_ip'] = FALSE;
  $config['sess_time_to_update'] = 300;
  $config['sess_regenerate_destroy'] = FALSE;
  </code></pre>
  
  <p>I am setting like as follows</p>
  
  <pre><code>$this-&gt;session-&gt;set_userdata('test', "Hello world!");
  </code></pre>
  
  <p>And trying to retrieve as follows and it prints empty</p>
  
  <pre><code>$this-&gt;session-&gt;userdata('test')
  </code></pre>
  
  <p>Printing all the session </p>
  
  <pre><code>var_dump($this-&gt;session-&gt;all_userdata());
  </code></pre>
  
  <p>prints</p>
  
  <pre><code>array(1) {
    ["session_id"]=&gt;
    string(32) "968esdf9539d0bdc29faeb48ad86948"}
  </code></pre>
  
  <p>I have gone through <a href="https://forum.codeigniter.com/post-325982.html" rel="nofollow noreferrer">https://forum.codeigniter.com/post-325982.html</a></p>