title: how to avoid auto session create in codeigniter?
body: <p>I've been trying to work with sessions using Codeigniter, still I found out everytime I refresh the browser a new session is created... which makes no sense. I try to delete all sessions and then I get a new one, has anyone seen this error??</p>
  
  <p>this is my code:</p>
  
  <pre><code>$this-&gt;load-&gt;library('session');
  print_r  ($this-&gt;session-&gt;all_userdata());
  $this-&gt;session-&gt;sess_destroy();
  </code></pre>
  
  <p>So, with the sess_destroy I delete the session, but when I refresh the site a new session comes.. </p>