Cookie Implementation

Hi,
I am trying to remember certain information like username using cookies
so that when the same page is accessed again, some default settings can
be maitained.I am facing a problem when reading the cookie value.

The steps that I follow are:

  1. Click a button in a view which will pass the control to a controller.
  2. In the controller, the username which as passed as a parameter is
    saved in a cookie and again there is redirection to the same view which
    was displayed first.
  3. Now in the view, I try to access the cookie value but it is null.

Is it not possible to access the cookie value when I redirect to that
page?

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