# Session with Indifferent Access?

**URL:** <https://www.ruby-forum.com/t/session-with-indifferent-access/54244>\
**Category:** Rails\
**Created:** [February 27, 2006, 5:26pm UTC](https://www.ruby-forum.com/t/session-with-indifferent-access/54244 "2006-02-27T17:26:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![avdi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@avdi](https://www.ruby-forum.com/u/avdi)\
**Post date:** [February 27, 2006, 5:26pm UTC](https://www.ruby-forum.com/t/session-with-indifferent-access/54244/1 "2006-02-27T17:26:58Z")

</div>

I noticed yesterday that, unlike many of the the hash-like objects in  
Rails,  
the session object doesn’t have indifferent access. E.g.  
@session[‘user’]  
is not the same as @session[:user]. This violated my POLS, and caused  
me  
some confusion until I finally figured out what was happening. Does  
anyone  
else find this inconsistent, or am I just being picky? Is it worth  
submiting as a bug report?

~Avdi
