Class: UssdEngine::Session::RedisStore
- Inherits:
-
RedisSessionStore
- Object
- RedisSessionStore
- UssdEngine::Session::RedisStore
- Defined in:
- lib/ussd_engine/session/redis_store.rb
Instance Method Summary collapse
- #current_session_id(request) ⇒ Object
- #extract_session_id(request) ⇒ Object
-
#initialize(app, options = {}) ⇒ RedisStore
constructor
A new instance of RedisStore.
Constructor Details
#initialize(app, options = {}) ⇒ RedisStore
Returns a new instance of RedisStore.
7 8 9 10 11 12 13 |
# File 'lib/ussd_engine/session/redis_store.rb', line 7 def initialize(app, = {}) # Disable cookies [:cookie_only] = false [:defer] = true super app, end |
Instance Method Details
#current_session_id(request) ⇒ Object
19 20 21 |
# File 'lib/ussd_engine/session/redis_store.rb', line 19 def current_session_id(request) get_request_identifier(request.env) || super end |
#extract_session_id(request) ⇒ Object
15 16 17 |
# File 'lib/ussd_engine/session/redis_store.rb', line 15 def extract_session_id(request) get_request_identifier(request.env) || super end |