diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-10-21 06:14:36 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-10-21 06:14:36 -0700 |
commit | 2ff36e74eba44b7a972fdb21774f45a27492e69e (patch) | |
tree | 639dfe3c1e27e3646ca7d3ab14619685ed35db13 | |
parent | cd9f135a660d835763d63a7ffaefb325f03faaeb (diff) | |
parent | a58d3112620a62240c5f98f1cc0111e89de6b543 (diff) | |
download | gitlab-ce-2ff36e74eba44b7a972fdb21774f45a27492e69e.tar.gz |
Merge pull request #1564 from dosire/cookie_secure_setting
Secure and httponly options on cookie.
-rw-r--r-- | config/initializers/session_store.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 36c5f4666a7..e777ae2b78d 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,6 +1,8 @@ # Be sure to restart your server when you modify this file. -Gitlab::Application.config.session_store :cookie_store, key: '_gitlab_session' +Gitlab::Application.config.session_store :cookie_store, key: '_gitlab_session', + secure: Gitlab::Application.config.force_ssl, + httponly: true # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information |