Open aaronskiba opened 1 month ago
I can force this error by manually altering the value of _dmp_roadmap_session
within the browser inspector.
The code is configured to throw an exception:
# app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
Here I am setting the cookie to expire after 5 seconds:
config/initializers/session_store.rb
Rails.application.config.session_store :cookie_store, key: "_dmp_roadmap_session", expire_after: 5.seconds,
same_site: :lax
If I navigate to the sign-in page and wait more than 5 seconds before signing in, the same error is encountered.
However, if the cookie expires while I'm already signed in, the following behaviour is encountered:
One additional detail; the cookie expiry is set to Session
.
Will look at this further at a later time
View details in Rollbar: https://app.rollbar.com/a/ualbertalib/fix/item/dmp_assistant/446