Skip to content
Commits on Dec 16, 2011
  1. @josevalim
Commits on Nov 23, 2011
  1. @lest
Commits on Oct 18, 2011
  1. @avakhov
Commits on Sep 1, 2011
  1. @tenderlove
Commits on Jun 30, 2011
  1. @josevalim
Commits on Jun 5, 2011
  1. @pixeltrix

    Add backward compatibility for testing cookies

    pixeltrix committed
    This commit restores the ability to assign cookies for testing via
    @request.env['HTTP_COOKIE'] and @request.cookies, e.g:
        @request.env['HTTP_COOKIE'] = 'user_name=david'
        get :index
        assert_equal 'david', cookies[:user_name]
        @request.cookies[:user_name] = 'david'
        get :index
        assert_equal 'david', cookies[:user_name]
    Assigning via cookies[] is the preferred method and will take precedence
    over the other two methods. This is so that cookies set in controller
    actions have precedence and are carried over between calls to get, post, etc.
  2. @pixeltrix
Commits on Jun 4, 2011
  1. @pixeltrix

    Refactor ActionController::TestCase cookies

    pixeltrix committed
    Assigning cookies for test cases should now use cookies[], e.g:
      cookies[:email] = ''
      get :index
      assert_equal '', cookies[:email]
    To clear the cookies, use clear, e.g:
      get :index
      assert_nil cookies[:email]
    We now no longer write out HTTP_COOKIE and the cookie jar is
    persistent between requests so if you need to manipulate the environment
    for your test you need to do it before the cookie jar is created.
Commits on May 25, 2011
  1. @fxn

    Merge branch 'master' of git://

    fxn committed
Commits on May 23, 2011
  1. @smartinez87
  2. @smartinez87
  3. @jonleighton

    Replace references to ActiveSupport::SecureRandom with just SecureRan…

    jonleighton committed
    …dom, and require 'securerandom' from the stdlib when active support is required.
Commits on May 19, 2011
  1. @stevenbristol
Commits on Apr 6, 2011
  1. @tenderlove
  2. @spastorino

    raise if someone tries to modify the cookies when it was already stre…

    spastorino committed
    …amed back to the client or converted to HTTP headers
Commits on Jan 21, 2011
  1. @brainopia @josevalim

    Add tld_length option when using domain :all in cookies

    brainopia committed with josevalim
    Signed-off-by: José Valim <>
  2. @brainopia @josevalim

    Support list of possible domains for cookies

    brainopia committed with josevalim
    Signed-off-by: José Valim <>
Commits on Dec 15, 2010
  1. @brainopia @vijaydev

    Fix edge cases for domain :all option on cookie store

    brainopia committed with vijaydev
    Dont set explicit domain for cookies if host is not a domain name
    [#6002 state:committed]
    Signed-off-by: Santiago Pastorino <>
Commits on Nov 26, 2010
  1. @asanghi
Commits on Oct 27, 2010
  1. @pixeltrix
Commits on Oct 25, 2010
  1. @pixeltrix
Commits on Aug 27, 2010
  1. @tilsammans
Commits on Aug 15, 2010
  1. @brycethornton @josevalim

    Allow for any possible TLD when using the :all option with the cookie…

    brycethornton committed with josevalim
    … session store. This works for subdomain.mysite.local,,, etc. [#5147 state:resolved]
    Signed-off-by: José Valim <>
Commits on Jul 15, 2010
  1. @carlosantoniodasilva
Commits on Jun 11, 2010
  1. @rizwanreza @josevalim
  2. @rizwanreza @josevalim
  3. @rizwanreza @josevalim
Commits on May 18, 2010
  1. @josevalim
  2. @josevalim
Commits on Apr 5, 2010
  1. @josevalim

    Rename config.cookie_secret to config.secret_token and pass it as con…

    josevalim committed
    …figuration in request.env. This is another step forward removing global configuration.
Commits on Apr 4, 2010
  1. @jeremy
Commits on Mar 31, 2010
  1. @josevalim

    Deprecate cookie_verifier_secret in favor of config.cookie_secret all…

    josevalim committed
    …owing signed cookies to work again.
Commits on Mar 18, 2010
  1. @jeremy

    Deleting and setting a cookie in the same request was broken

    Mathias Biilmann Christensen committed with jeremy
    Made sure to remove a cookie from @deleted_cookies when set
    [#4211 state:committed]
    Signed-off-by: Jeremy Kemper <>
Commits on Jan 18, 2010
  1. @josh
Commits on Jan 16, 2010
  1. @josh

    Cookies middleware

    josh committed
Something went wrong with that request. Please try again.