mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-25 07:54:11 -05:00
FIX: add path to cookie on subfolder installs
This commit is contained in:
parent
6e3dcdeea1
commit
b49e0e0f4a
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
# 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,
|
# Use the database for sessions instead of the cookie-based default,
|
||||||
# which shouldn't be used to store highly confidential information
|
# which shouldn't be used to store highly confidential information
|
||||||
|
|
Loading…
Reference in a new issue