Skip to content

Commit

Permalink
Fix short lived session for good
Browse files Browse the repository at this point in the history
  • Loading branch information
amree committed Oct 13, 2024
1 parent 50d357d commit bda783c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ class Application < Rails::Application
config.exceptions_app = ->(env) {
ErrorsController.action(:show).call(env)
}

config.session_store :cookie_store,
key: "petakopi_session",
expire_after: 1.month
end
end
2 changes: 2 additions & 0 deletions config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,6 @@
Devise::SessionsController.layout "application_full"
Devise::RegistrationsController.layout "application_full"
end

config.remember_for = 1.year
end

0 comments on commit bda783c

Please sign in to comment.