I am trying to get the active session_id of a user after the user successfully logs in. The session_id needs to be stored in a field of User model for later operations. I'm using devise with activerecord-session_store.
Tried to override some devise methods after sign_in but didn't help.