is there another way to delete sessions variable? i was thinking of sessions = nil
+6
A:
Setting a session value:
@session[:greeting] = "Hello world!"
Reading a session value:
@session[:greeting] # => "Hello world!"
Deleting a single session value:
@session.delete :greeting
Clearing an entire session:
reset_session
jessecurry
2010-02-16 14:29:31
I've never seen @session as an instance variable, always just session[:key] (without the @ like a local variable). Is this the same thing?
Beerlington
2010-02-17 03:33:48