diff --git a/services/web/app/coffee/infrastructure/Server.coffee b/services/web/app/coffee/infrastructure/Server.coffee index 264360c81c..64d92202a3 100644 --- a/services/web/app/coffee/infrastructure/Server.coffee +++ b/services/web/app/coffee/infrastructure/Server.coffee @@ -32,7 +32,7 @@ else app = express() -cookieKey = "sharelatex.sid" +cookieKey = Settings.cookieName cookieSessionLength = 5 * oneDayInMilliseconds csrf = express.csrf() diff --git a/services/web/config/settings.defaults.coffee b/services/web/config/settings.defaults.coffee index 384178161e..bcfdea08fe 100644 --- a/services/web/config/settings.defaults.coffee +++ b/services/web/config/settings.defaults.coffee @@ -111,6 +111,7 @@ module.exports = # use full domain for cookies to only be accesabble from that domain, # replace subdomain with dot to have them accessable on all subdomains # cookieDomain: ".sharelatex.dev" + cookieName:"sharelatex.sid" # Same, but with http auth credentials. httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000'