Displaying 1 result from an estimated 1 matches for "8879ab66".
2006 May 18
4
How do you delete a session variable?
Hi
Let''s say we set session[:foo] = ''bar''. Now we want to remove the :foo
key completely. How do you do that?
Appearantly, session is a CGI::Session [1] instance, so it doesn''t
have #delete like Hash. I tried:
session[:foo] = nil
But then debug(session) shows an empty :foo key. I''d like to remove
that key, as my session is already pretty crowded. Is