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