This project is archived and is in readonly mode.
CookieStore & session.session_id
-
Bryan Helmkamp
- Tag set to 2.0-stable, cookie-store, request-forgery-protection, session_id
Looks like the RequestForgeryProtection is setup to not depend on the session_id value when using a CookieStore. Instead, it uses a csrf_id value inside the cookie.
That said, we see intermittent InvalidAuthenticityToken exceptions on production that we haven't been able to reproduce or debug, and are trying to track down the cause.
blj -- What problem are you seeing, specifically?
-
blj
As far as I remember, the forgery protection was using the session_id, was not sure at which point the csfr_id was added. In my opinion changing session_id is unnecessary and it happens only when using cookie session store.
-
josh
- State changed from new to stale
-
Raza Ali
Facing the same ActionController::InvalidAuthenticityToken exception on live server but unable to reproduce or debug properly, any suggestion?
Environment details: Linux, Rails 2.3.4, Postgres DB.