From: Brian Candler Date: 2010-09-04T09:29:31+09:00 Subject: Re: Read cookie Just tested with rails 2.3.8, and it seems to be fine: rails foobar cd foobar cat <app/controllers/foobar_controller.rb class FooController < ApplicationController def bar render :text => cookies["test"].inspect cookies["test"] = Time.now.to_s end end EOF script/server Point browser at http://127.0.0.1:3000/foo/bar - and then refresh. The value displayed (which is the value in the cookie) is the timestamp of the previous request. So it took a very long time to get here, given that you didn't say in the first place you were writing a Rails app (probably the question would have been better directed to a Rails forum then); then in another posting you said "Never mind Rails. I don't need the cookie there"; in another you mentioned net/http. -- Posted via http://www.ruby-forum.com/.