Class: SoarSc::Providers::Sessions
- Inherits:
-
Object
- Object
- SoarSc::Providers::Sessions
- Defined in:
- lib/providers/sessions.rb
Instance Method Summary collapse
Instance Method Details
#bootstrap_sessions(stack) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/providers/sessions.rb', line 4 def bootstrap_sessions(stack) validate_session_configuration(SoarSc::environment) if 'true' == SoarSc::environment['USE_SESSIONS'] then stack.use Rack::Session::Cookie, key: SoarSc::environment['SESSION_KEY'], secret: SoarSc::environment['SESSION_SECRET'] else SoarSc.auditing.debug('Not using sessions', SoarSc::startup_flow_id) end end |