Topic: Rails app creates a cookie.

I have unexpected cookie creation in my rails app. What it means?

I have this cucumber step:

get_me_the_cookies.should eq(0)

I use show_me_the_cookies gem: https://github.com/nruth/show_me_the_cookies, command on which reflects array of cookies hash collection.[{:name, :value, :domain, :expired, :path},{and so on for other cookies}]

And it fails. Exception is:

expected: []
           got: [{:name=>"_homesite_session", :domain=>"www.example.com", :value=>"BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWM1ZjcxOTZiYjg2ZmRhOWJiZjViMTU0ZDg2NTg0Nzg4BjsAVEkiCmZsYXNoBjsARm86JUFjdGlvbkRpc3BhdGNoOjpGbGFzaDo6Rmxhc2hIYXNoCToKQHVzZWRvOghTZXQGOgpAaGFzaHsGOgxzdWNjZXNzVDoMQGNsb3NlZEY6DUBmbGFzaGVzewY7CkkiHk5ldyB1c2VyIGFkZGVkOiBmcmFua3BvcHAGOwBGOglAbm93MA==--ccd4732cd071d5028f584d3de477a07935264967", :expires=>nil, :path=>"/"}]

Where this cookie created? Why it matches example.com?

Regards, Alex

Last edited by awhiteland (2011-11-22 04:57:51)