I tried this:
In View:
<% func = remote_function( :url => { :action => 'set_sessions_nil'} )
-%>
<body onunload = "<%= func %>">
.....
</body>
In Controller:
def set_sessions_nil
session[:user] = nil
session[:arranger] = nill
end
Pretty straight forward, but after I open and close a few windows my
server running the localhost dies - it just sits there and does nothing,
so don't try that a home.
-S
--
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---