FIX: add path to cookie on subfolder installs

This commit is contained in:
Neil Lalonde 2016-03-07 13:40:14 -05:00
parent 6e3dcdeea1
commit b49e0e0f4a

View file

@ -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