From: ara.t.howard@... Date: 2006-04-07T11:35:39+09:00 Subject: Re: accessing session with session.each On Fri, 7 Apr 2006, sas sas wrote: > I'd like to traverse thru the contents of the session object > > I've been looking at C:\ruby\lib\ruby\1.8\cgi\session.rb and found out > that there's no each method in it. > > So I tried to make accesible the data collection. > > First I tried with something like this > > def each(block) > unless @data > @data = @dbman.restore > end > @data.each block > end > > I edited the file, but nothing seems to happen. > > I even tried to set a breakpoint, but again nothing happens. > > Is there some way to debug that file??? > > And then, taking into account that ruby is a fully interpreted language, > how come my changes are being ignored??? > > Saludos > > Sas > > PS: I apologize if this is a stupid question. I'm just taking my very > first steps with ruby and with rails. if you are running in fastcgi mode you script, and it's dependancies, are loaded only once. is this the case? -a -- be kind whenever possible... it is always possible. - h.h. the 14th dali lama