title: Unserialize PHP session data
body: <p>I'm using CodeIgniter 3.x with database session driver and i want to access <code>data</code> cloumn that <code>BLOB</code> type. Here my blob data:</p>
  
  <pre><code>__ci_last_regenerate|i:1435420891;identity|s:13:"john@doe.com ";username|s:13:"johndoe";email|s:13:"john@doe.com ";user_id|s:1:"5";old_last_login|s:10:"1435412865";
  </code></pre>
  
  <p>I tried with <code>unserialize($string)</code> but didnt work!</p>
  
  <blockquote>
    <p>unserialize(): Error at offset 0</p>
  </blockquote>
  
  <p>How can i access blob data element? For ex: <code>$user['email']</code></p>