Class: Charyf::Engine::Session::Processor::Default

Inherits:
Base
  • Object
show all
Defined in:
lib/charyf/engine/session/processors/default.rb

Constant Summary collapse

SESSION_TIMEOUT =

10 Minute TODO - move to config?

10 * 60

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Strategy::BaseClass

included

Class Method Details

.getObject



34
35
36
# File 'lib/charyf/engine/session/processors/default.rb', line 34

def self.get
  self.new
end

Instance Method Details

#process(request) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/charyf/engine/session/processors/default.rb', line 18

def process(request)
  # session = Charyf::Engine::Session.get(request.id)
  #
  # return unless session
  #
  # if session && Time.now - session.timestamp > SESSION_TIMEOUT
  #   session.destroy!
  #   return nil
  # end
  #
  # session.invalidate!
  # session

  nil
end