On Nov 29, 12:02 am, "Mustafa C." <li...@ruby-forum.com> wrote:
> Hi,
> There doesn't seem to be any previous posts about this problem, I must
> be
> setting things up wrongly at very basics...
>
> Firstly, the problem... I can't get session[] to persist with
> active_record_store. I enabled (config.action_controller.session_store =
> :active_record_store) in environment.rb and created the sessions table
> at my MySQL database. When I do a session[:blah] = "blah" at the
> controller, it does save it (encrypted/scrambled) in the DB, but it
> doesn't persist in the session hash when I attempt to retrieve
> session[:blah] later on.
>
> I believe Rails/Rack somehow believes all my sessions are coming from a
> different browser, does anyone have any clue?
>
> I tried to use memcache store and dalli store as well, they failed at
> "key too long" problem at the page load time, which also doesn't have
> any previous posts on these forums... So I gave that up and am trying to
> solve the above active_record issue as I need to move away from my
> current Cookie based session store. I am at Rails 2.3.8.
>
Did you clear your browser's cookies at the point that you switched
from cookie store to activerecord store?
Fred
> Thanks for any insights,
>
> --
> Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment