title: How to store a session token in database in rails?
body: <p>How can I store a session token in database on login? Everytime user login user's session token should get updated and when it is about to expire it should get updated to. I saw in rails guide that using <code>rails g active_record:session_migration</code> will create table and that will store all the sessions. Then <code>YourApp::Application.config.session_store :active_record_store</code>. How session will get store in this table?? do i need to write a logic for that? Please help.</p>
  
  <p>Thanks</p>