Hi,
Your sessions (by default in cookie) needs to be moved to Active record
store or memcache store to fix this issue.
For Databased sessions:
config.action_controller.session_store = :active_record_store
You need to create the session table as below
rake db:sessions:create
rake db:migrate
OR
For Memcache sessions:
config.action_controller.session_store = :mem_cache_store
Also you need to setup a mem cache server and configure it as below
config.cache_store = :mem_cache_store, 'localhost', '127.0.0.1:11211',
{:namespace => 'myapp123'}
-NAYAK
On Wed, May 27, 2009 at 10:52 AM, Mk 27 <[email protected]>wrote:
>
> I altered a controller to use a session variable in place of an instance
> variable, and this happened
>
> Status: 500 Internal Server Error
> ActionController::Session::CookieStore::CookieOverflow
>
> In the docs, it does say:
>
> "If you have more than 4K of session data [...] pick another session
> store."
>
> What does the phrase "pick another session store" mean? My purpose in
> doing this is to keep track of a list assembled by the user. If the
> user then chooses a sort option, I need to sort the list as it exists.
> AFAIK there are no other ways to doing this. I know nothing about
> cookies; does matter how big they are?
>
> And, of course, how can I solve my problem?
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--
- NAYAK
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---