I recently switched to the cookie session store for my rails app, and I
wondering how I can access some kind of unique identifier for each
between requests. It used to be (when I was using active record store)
the session id was set and that string didn’t change between requests.
of course, the session id does change between requests because that is
the session data is stored. However, rails must be setting some unique
identifier in this encrypted string, otherwise there wouldn’t be any
tracking. How can I access such a unique identifier? I realize I get
set a variable, but it seems pointless to redo something that is already
being handled by rails.
FYI, I was using the session_id to track the number of plays of a given
on my site, in order to know how many times a song was played by a
user I track their session id in the database.
Thanks for any info.