diff --git a/lib/spidr/page.rb b/lib/spidr/page.rb
index <HASH>..<HASH> 100644
--- a/lib/spidr/page.rb
+++ b/lib/spidr/page.rb
@@ -280,7 +280,7 @@ module Spidr
     def cookie_params
       params = {}
 
-      cookie.split(/;\s+/).each do |key_value|
+      (@headers['set-cookie'] || []).each do |key_value|
         key, value = key_value.split('=',2)
 
         next if RESERVED_COOKIE_NAMES.include?(key)
diff --git a/spec/page_spec.rb b/spec/page_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/page_spec.rb
+++ b/spec/page_spec.rb
@@ -81,7 +81,7 @@ describe Page do
 
   describe "cookies" do
     before(:all) do
-      @page = get_page('http://github.com/postmodern/spidr/')
+      @page = get_page('http://twitter.com/login')
     end
 
     it "should provide access to the raw Cookie" do
@@ -97,7 +97,7 @@ describe Page do
 
       params.each do |key,value|
         key.should_not be_empty
-        value.should_not be_nil
+        value.should_not be_empty
       end
     end
   end
fix potential parse error with multiple header cookies