Removing something from the session


#1

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.


#2

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 K.
To: removed_email_address@domain.invalid
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 K.
http://betweengo.com/



Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


#3

reset_session

adam


#4

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!