On Apr 23, 3:12 pm, Hans Hartmann <li...@ruby-forum.com> wrote: > Hi there, > > i want to store an array of filenames in a session-variable > (session[:foo). > The problem is: if it reaches a current number of entries the > application breaks. > > Is there a storage-limit of session-variables? > Is it possible to extend it? > Is there an alternative to store large strings/arrays?
It depends on the session store you are using. The default is CookieStore, where the entire session is in the cookie, ie the maximum size of a session is 4k (minus some overhead). If you got for a database backed store then you're only limited by the database and how you have setup the sessions table. If you find yourself storing large amounts of data in the session you may want to consider an alternative design (such as storing the data in the database in a more direct form) Fred > > Thanks 'till now > Hans > -- > 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-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.