From: Xeno Campanoli Date: 2008-07-10T04:58:18+09:00 Subject: Re: Trying to find good examples of Ruby Sessions. Dave Thomas wrote: > > On Jul 9, 2008, at 2:27 PM, Xeno Campanoli wrote: > >> Pickaxe 246 is not only weak, but appears to be just wrong by saying: >> >> if session['lastaccess'] >> >> which doesn't check that lastaccess is infact a hash key to begin with. > > It doesn't need to. It'll be nil if unset, and nil is false in Ruby. > > Did you run the example? You're right. I miscoded my copy. Okay, my apologies. Still, it would be nice to have more examples. Can anyone point me to some? > > > > > Dave > >