# What is a session stored via the active\_record\_store option unique to?

**URL:** <https://www.ruby-forum.com/t/what-is-a-session-stored-via-the-active-record-store-option-unique-to/191219>\
**Category:** Rails\
**Created:** [July 7, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/what-is-a-session-stored-via-the-active-record-store-option-unique-to/191219 "2010-07-07T17:16:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lille](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/f4b2a3/32.png) [@Lille](https://www.ruby-forum.com/u/Lille)\
**Post date:** [July 7, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/what-is-a-session-stored-via-the-active-record-store-option-unique-to/191219/1 "2010-07-07T17:16:55Z")

</div>

Hi,

After a bunch of snooping in AWDWR and Railsguides I can’t reach a  
good understanding to the following question: What is a session stored  
via the active\_record\_store option unique to? In other words, how does  
rails bind the user to their session under the active\_record\_store  
option?

This concern has arisen in the following way…

…I have two use levels in my app: 1) authenticated (authlogic) and  
2) unauthenticated. In case 2, I’d been persisting user data with a  
session variable. I’d like to treat the session in case 2 as unique to  
the user, but I can’t test this assumption while working on one  
development machine. Do I need to use some specially-prepared session  
variable to ensure each unauthenticated user has only their unique  
session under active\_record\_store?

Thanks,

Lille

---

<div class="post-metadata">

**Author:** ![Lille](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/f4b2a3/32.png) [@Lille](https://www.ruby-forum.com/u/Lille)\
**Post date:** [July 8, 2010, 9:14am UTC](https://www.ruby-forum.com/t/what-is-a-session-stored-via-the-active-record-store-option-unique-to/191219/2 "2010-07-08T09:14:31Z")

</div>

On Jul 7, 4:15 pm, Lille [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> After a bunch of snooping in AWDWR and Railsguides I can’t reach a  
> good understanding to the following question: What is a session stored  
> via the active\_record\_store option unique to? In other words, how does  
> rails bind the user to their session under the active\_record\_store  
> option?

The user has a cookie (by default called session\_id or \_session\_id or  
something along those lines) storing the session id.

Fred
