Frederick Cheung wrote:
> 
> You're wrong. There is only one cookie. it contains a serialised ruby
> object (a hash to be quite precise)
> 
> Fred

I think I figured it out. I did a remote_function in my layout

<% func =  remote_function( :url => { :action => 'set_session_nil'} ) 
-%>
<body onunload = "<% func %>">
.......

and then in the controller I just set session[:user] = nil.

Sorry if I wasn't understand correctly Fred, but thanks for your help. I 
learned a lot about sessions that I didn't know and hopefully will be 
better prepared the next time I have to do something new and unusual 
with them.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to