As long as your server sets a cookie in its own domain or from a subdomain of its domain, this should work
cookies[cookie_name] = { :value => 'a value', :expires => 1.year.from_now, :domain => 'example.com' }
It will not work for any other domains.
To make this work in IE6, you might need a valid P3P policy header.
Something like this sent as a header should do this:
headers["p3p"] = 'CP="CAO PSA OUR"'
DanSingerman
source share