Problem to reading Cookies

I have a problem with rails and cookies. I have created a
loginController. In this i have inserted these lines:
cookies[:uid] = { :value =>,:expires => 30.days.from_now};
cookies[:uhp] = { :value => @user.hashed_password,:expires =>
30.days.from_now };
puts cookies[:uid]

This print nil.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs