Hi I''ve got the error in the log file "marshal data too short" after I try to store some data into session. After doing some research on the internet, it looks like the problem was caused by pstore.rb. It is there way to solve this problem? Thank you -- Posted via http://www.ruby-forum.com/.
What I did is the following session[''id''] = nil or session[''id''] = some value -- Posted via http://www.ruby-forum.com/.
David Felstead
2006-May-31 04:54 UTC
[Rails] Re: How to solve "Marshal Data Too Short" error?
Which session store are you using? If it''s the ActiveRecord store, the error can occur when the data in your session exceeds the size of the ''data'' column in your sessions table. You can either increase the size of the data field, or examine more closely what is being stored in your session data. Cheers, -DF On 5/31/06, Victor Fan <vlkfan@yahoo.ca> wrote:> What I did is the following > > session[''id''] = nil > or > session[''id''] = some value > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Victor Fan
2006-May-31 14:14 UTC
[Rails] Re: Re: How to solve "Marshal Data Too Short" error?
David Felstead wrote:> Which session store are you using? If it''s the ActiveRecord store, > the error can occur when the data in your session exceeds the size of > the ''data'' column in your sessions table. You can either increase the > size of the data field, or examine more closely what is being stored > in your session data. > > Cheers, > > -DFThank you David I am trying to store one integer (the id) into the session and the value is < 100. -- Posted via http://www.ruby-forum.com/.
Jack Christensen
2006-May-31 15:11 UTC
Re: Re: Re: How to solve "Marshal Data Too Short" error?
Victor Fan wrote: David Felstead wrote: Which session store are you using? If it''s the ActiveRecord store, the error can occur when the data in your session exceeds the size of the ''data'' column in your sessions table. You can either increase the size of the data field, or examine more closely what is being stored in your session data. Cheers, -DF Thank you David I am trying to store one integer (the id) into the session and the value is < 100. I ran into this with pstore. Switched to ActiveRecord store with a longtext for the session data and haven''t had any problems since. -- Jack Christensen jackc-/SOt/BrQZzMOf2zXYvRtkodd74u8MsAO@public.gmane.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Victor Fan
2006-May-31 22:09 UTC
[Rails] Re: Re: Re: How to solve "Marshal Data Too Short" error?
Jack Christensen wrote:> _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/railsJack, can you submit your message again? I can only see an empty message. Thank you Victor -- Posted via http://www.ruby-forum.com/.