Skip to content

Commit

Permalink
fix: request header or cookie size too large
Browse files Browse the repository at this point in the history
* chore: add session store from issue

related to #57
  • Loading branch information
froger authored Feb 7, 2024
2 parents 573eb9f + ce64d9b commit 1399db3
Show file tree
Hide file tree
Showing 4 changed files with 1,800 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ gem 'omniauth_openid_connect'

gem "wicked_pdf", "~> 2.1"

gem 'activerecord-session_store'

group :development, :test do
gem "byebug", "~> 11.0", platform: :mri

gem "brakeman"
gem "decidim-dev", ENV.fetch("DECIDIM_VERSION", "0.27.3")
gem "decidim-dev", ENV.fetch("DECIDIM_VERSION", "0.27.5")
end

group :development do
Expand Down
1 change: 1 addition & 0 deletions config/initializers/session_store.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rails.application.config.session_store :active_record_store, :key => '_decidim_session'
12 changes: 12 additions & 0 deletions db/migrate/20240118083525_add_sessions_table.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class AddSessionsTable < ActiveRecord::Migration[6.1]
def change
create_table :sessions do |t|
t.string :session_id, :null => false
t.text :data
t.timestamps
end

add_index :sessions, :session_id, :unique => true
add_index :sessions, :updated_at
end
end
Loading

0 comments on commit 1399db3

Please sign in to comment.