FIX: add path to cookie on subfolder installs
This commit is contained in:
parent
6e3dcdeea1
commit
b49e0e0f4a
|
@ -1,6 +1,10 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
Discourse::Application.config.session_store :cookie_store, key: '_forum_session'
|
||||
Discourse::Application.config.session_store(
|
||||
:cookie_store,
|
||||
key: '_forum_session',
|
||||
path: (Rails.application.config.relative_url_root.nil?) ? '/' : Rails.application.config.relative_url_root
|
||||
)
|
||||
|
||||
# Use the database for sessions instead of the cookie-based default,
|
||||
# which shouldn't be used to store highly confidential information
|
||||
|
|
Loading…
Reference in New Issue