Patch #3968 » 03_session_path.patch
| lib/tasks/initializers.rake | ||
|---|---|---|
| 15 | 15 |
# change this key, all old sessions will become invalid! Make sure the |
| 16 | 16 |
# secret is at least 30 characters and all random, no regular words or |
| 17 | 17 |
# you'll be exposed to dictionary attacks. |
| 18 |
relativeUrlRoot = ENV['RAILS_RELATIVE_URL_ROOT'] |
|
| 18 | 19 |
ActionController::Base.session = {
|
| 19 | 20 |
:session_key => '_redmine_session', |
| 21 |
:session_path => (relativeUrlRoot.nil? or relativeUrlRoot.empty?) ? '/' : relativeUrlRoot, |
|
| 20 | 22 |
:secret => '#{secret}'
|
| 21 | 23 |
} |
| 22 | 24 |
EOF |
- « Previous
- 1
- 2
- 3
- Next »