Hi, Kind of a dumb question but when there is something in the session how do you remove it? @session.delete(:params) doesn''t work unfortunately. -- Frank Kim http://betweengo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060309/de00e277/attachment.html
I seem to remember reading that you can do this with a ''nil'' assignment (e.g., session[:thing_to_remove] = nil ). Let us know! Best regards, Bill ----- Original Message ----- From: Frank Kim To: rails@lists.rubyonrails.org Sent: 2006-03-09 3:36 PM Subject: [Rails] removing something from the session Hi, Kind of a dumb question but when there is something in the session how do you remove it? @session.delete(:params) doesn''t work unfortunately. -- Frank Kim http://betweengo.com/ ------------------------------------------------------------------------------ _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060309/9bd604e5/attachment.html
reset_session adam On 3/9/06, Bill Walton <bill.walton@charter.net> wrote:> > I seem to remember reading that you can do this with a ''nil'' assignment ( > e.g., session[:thing_to_remove] = nil ). Let us know! > > Best regards, > Bill > > ----- Original Message ----- > *From:* Frank Kim <railsonly@gmail.com> > *To:* rails@lists.rubyonrails.org > *Sent:* 2006-03-09 3:36 PM > *Subject:* [Rails] removing something from the session > > Hi, > > Kind of a dumb question but when there is something in the session how do > you remove it? > > @session.delete(:params) doesn''t work unfortunately. > > -- > Frank Kim > http://betweengo.com/ > > ------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060309/811aac86/attachment-0001.html
I was doing that but I thought it wasn''t actually removing it from the session, just setting it to nil. But you''re right, it does actually remove it. Thanks! On 3/9/06, Bill Walton <bill.walton@charter.net> wrote:> > > I seem to remember reading that you can do this with a ''nil'' assignment (e.g., session[:thing_to_remove] = nil ). Let us know! > > Best regards, > Bill > > > ----- Original Message ----- > From: Frank Kim > To: rails@lists.rubyonrails.org > Sent: 2006-03-09 3:36 PM > Subject: [Rails] removing something from the session > > > Hi, > > Kind of a dumb question but when there is something in the session how do you remove it? > > @session.delete(:params) doesn''t work unfortunately. >