title: store logout time in database using codeigniter
body: <p>I want to store logout time in the database while i click logout button . please help me how to fetch the date and time and store it in the database. I am not much familiar to codeigniter .</p>
  
  <p>here is my logout controller</p>
  
  <pre><code>public function logout()
  {
      $this-&gt;session-&gt;unset_userdata('SESS_ADMIN');
  
      redirect('test');
  }
  </code></pre>