title: codeigniter session custom data lost, but not on localhost
body: <p>I have this weird problem with my ci sessions.
  On localhost is works fine, but online the log shows the error:</p>
  
  <blockquote>
    <p>The session cookie data did not match what was expected. This could be
    a possible hacking attempt.</p>
  </blockquote>
  
  <p>I removed all cookies and emptied the sessions table. I also set user_agent length to 255. Basepath is also correct. What is notice when I log the session id's is the following:</p>
  
  <p>On the login page and when checking username/pw the id is the same, then I go to my members area where the id has changed.</p>
  
  <p>Another example:<br />
  1. I go to members area, session id is set, i'm not logged in, im sent to login<br />
  2. On login page, session id is changed, i login<br />
  3. Validation, session id is unchanged, i'm validated and sent to members area<br />
  4. On members area, session id is changed, i'm not logged in.</p>
  
  <p>On the login page, my sessions table counts 0 rows, when i login the sessions table counts 2/3 rows. 1 of them, but not the one with the current session id holds all the correct data.</p>
  
  <p>Hopefully someone can help me with this.</p>