Class: UssdEngine::Session::RedisStore

Inherits:
RedisSessionStore
  • Object
show all
Defined in:
lib/ussd_engine/session/redis_store.rb

Instance Method Summary collapse

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, options = {})
  # Disable cookies
  options[:cookie_only] = false
  options[:defer] = true

  super app, options
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