title: Kohana sessions and database
body: <p>I have hard time with kohana sessions, i would like to store my sessions data in database i've already created default <code>sessions</code> table, and i have this config file in </p>
  
  <pre><code>\application\config\session.php 
  </code></pre>
  
  <p>And here is config content: <a href="http://pastebin.com/MqqQpH5W" rel="nofollow">http://pastebin.com/MqqQpH5W</a></p>
  
  <p>Also my login works just fine, i've tried <code>var_dump(Auth::instance())</code> and i see some stuff like <code>{ ["_session":protected]=&gt; object(Session_Native)#20</code> so i guess my session does get started, but i'm quite lost on how do i set my session id to the database or some other stuff?
  I guess i could just make a normal query for that, but i think there has to be better way to do it.</p>
  
  <p>And btw my main goal is to make list of online users, and i see that i have in table row with name <code>last_active</code>, so my guess is that something should update that table automaticaly, right?</p>
  
  <p><strong>EDIT</strong> So after some googling and search in various files i found out that it loads <code>native</code> session type from config file in <code>application/auth</code>, so i've tried to change it to <code>database</code> and now it keeps putting session data in my database every time i refresh page, and login doesn't work anymore, any sugguestions?</p>