Please, someone can tell me where session data are stored on Windows, using Webrick in its default configuration? After storing an object into @session, I initially can access only the controller that has stored the object. Otherwise, the html page displays "Not found" and the Webrick console displays: #<ActionController::SessionRestoreError: Session contained objects where the class definition wasn''t available. Remember to require classes for all objects kept in the session. The session has been deleted.> Moreover, after having changed the model of the class, I''m not able to do anything! The initial controller also raise the error, so I cannot call it to perform a reset_session Thanks Massimo> -----Original Message----- > From: Dave Ringoen [mailto:email-aMBdsrFCgW+KfZpkr/XK+Q@public.gmane.org] > Sent: 19 February 2005 01:21 > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails] Relocating the directory for ruby_sess.* files > > Is there a way to relocate where ruby_sess.* files get written? > > In the PHP world, we''ve used an NFS mount for session files, to aid in > clustering. Is anyone doing this with Ruby? > > On a related note, I''ve been trying to get Apache FCGI working, and have > run > into problems with the permissions the ruby_sess.* files are given. On my > OS > X laptop, Apache writes them as www/wheel, whereas Webrick writes them as > <mylogin>/wheel, since I''m running Webrick interactively from a terminal > window. Then, since each web server has trouble reading the other''s > session > files, both throw errors, with Apache giving a 500 error, and Webrick > saying > "Not Found". Is there a way to control the permissions with which these > files are written? > > Thanks! I''m certainly enjoying Rails. In two days I got quite a lot of > functionality up and working--what a productive environment! > > Dave > > > On 2/18/05 4:19 PM, "Brian L." <zorander-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > schema change. I keep my sessions in the db rather > > than in /tmp to make this process that much easier (a trip in with > > myadmin). > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
On my Win 2K box, they''re in C:\Documents and Settings\<username>\Local Settings\Temp which is what both my TEMP and TMP environment variables are set to, so I''m not sure which one ruby is picking up, but check these on your machine and look to where they point. Chris On Tue, 22 Feb 2005 11:43:51 +0100, Nervi Massimo <Massimo.Nervi-5Ajj8d4WuGw@public.gmane.org> wrote:> Please, someone can tell me where session data are stored on Windows, using > Webrick in its default configuration? > > After storing an object into @session, I initially can access only the > controller that has stored the object. Otherwise, the html page displays > "Not found" and the Webrick console displays: > #<ActionController::SessionRestoreError: Session contained objects where > the class definition wasn''t available. Remember to require classes for all > objects kept in the session. The session has been deleted.> > > Moreover, after having changed the model of the class, I''m not able to do > anything! The initial controller also raise the error, so I cannot call it > to perform a reset_session > > Thanks > Massimo > > > > -----Original Message----- > > From: Dave Ringoen [mailto:email-aMBdsrFCgW+KfZpkr/XK+Q@public.gmane.org] > > Sent: 19 February 2005 01:21 > > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > Subject: [Rails] Relocating the directory for ruby_sess.* files > > > > Is there a way to relocate where ruby_sess.* files get written? > > > > In the PHP world, we''ve used an NFS mount for session files, to aid in > > clustering. Is anyone doing this with Ruby? > > > > On a related note, I''ve been trying to get Apache FCGI working, and have > > run > > into problems with the permissions the ruby_sess.* files are given. On my > > OS > > X laptop, Apache writes them as www/wheel, whereas Webrick writes them as > > <mylogin>/wheel, since I''m running Webrick interactively from a terminal > > window. Then, since each web server has trouble reading the other''s > > session > > files, both throw errors, with Apache giving a 500 error, and Webrick > > saying > > "Not Found". Is there a way to control the permissions with which these > > files are written? > > > > Thanks! I''m certainly enjoying Rails. In two days I got quite a lot of > > functionality up and working--what a productive environment! > > > > Dave > > > > > > On 2/18/05 4:19 PM, "Brian L." <zorander-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > schema change. I keep my sessions in the db rather > > > than in /tmp to make this process that much easier (a trip in with > > > myadmin). > > > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Found it. Thanks, Chris. Massi> -----Original Message----- > From: Chris McGrath [mailto:c.r.mcgrath-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org] > Sent: 22 February 2005 12:13 > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails] Relocating the directory for ruby_sess.* files > > On my Win 2K box, they''re in C:\Documents and > Settings\<username>\Local Settings\Temp which is what both my TEMP and > TMP environment variables are set to, so I''m not sure which one ruby > is picking up, but check these on your machine and look to where they > point. > > Chris > > On Tue, 22 Feb 2005 11:43:51 +0100, Nervi Massimo > <Massimo.Nervi-5Ajj8d4WuGw@public.gmane.org> wrote: > > Please, someone can tell me where session data are stored on Windows, > using > > Webrick in its default configuration? > > > > After storing an object into @session, I initially can access only the > > controller that has stored the object. Otherwise, the html page displays > > "Not found" and the Webrick console displays: > > #<ActionController::SessionRestoreError: Session contained objects > where > > the class definition wasn''t available. Remember to require classes for > all > > objects kept in the session. The session has been deleted.> > > > > Moreover, after having changed the model of the class, I''m not able to > do > > anything! The initial controller also raise the error, so I cannot call > it > > to perform a reset_session > > > > Thanks > > Massimo > > > > > > > -----Original Message----- > > > From: Dave Ringoen [mailto:email-aMBdsrFCgW+KfZpkr/XK+Q@public.gmane.org] > > > Sent: 19 February 2005 01:21 > > > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > Subject: [Rails] Relocating the directory for ruby_sess.* files > > > > > > Is there a way to relocate where ruby_sess.* files get written? > > > > > > In the PHP world, we''ve used an NFS mount for session files, to aid in > > > clustering. Is anyone doing this with Ruby? > > > > > > On a related note, I''ve been trying to get Apache FCGI working, and > have > > > run > > > into problems with the permissions the ruby_sess.* files are given. On > my > > > OS > > > X laptop, Apache writes them as www/wheel, whereas Webrick writes them > as > > > <mylogin>/wheel, since I''m running Webrick interactively from a > terminal > > > window. Then, since each web server has trouble reading the other''s > > > session > > > files, both throw errors, with Apache giving a 500 error, and Webrick > > > saying > > > "Not Found". Is there a way to control the permissions with which > these > > > files are written? > > > > > > Thanks! I''m certainly enjoying Rails. In two days I got quite a lot of > > > functionality up and working--what a productive environment! > > > > > > Dave > > > > > > > > > On 2/18/05 4:19 PM, "Brian L." <zorander-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > schema change. I keep my sessions in the db rather > > > > than in /tmp to make this process that much easier (a trip in with > > > > myadmin). > > > > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails