Forum: Ruby on Rails removing something from the session

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4098ef08ed2ee3eabeb0ddf0ec03f783?d=identicon&s=25 Frank Kim (Guest)
on 2006-03-09 22:37
(Received via mailing list)
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.
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2006-03-09 22:52
(Received via mailing list)
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
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 Adam Denenberg (Guest)
on 2006-03-09 22:55
(Received via mailing list)
reset_session

adam
4098ef08ed2ee3eabeb0ddf0ec03f783?d=identicon&s=25 Frank Kim (Guest)
on 2006-03-09 22:58
(Received via mailing list)
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!
This topic is locked and can not be replied to.