Module: Jpmobile::ParamsOverCookie

Defined in:
lib/jpmobile/trans_sid.rb

Instance Method Summary collapse

Instance Method Details

#extract_session_id(req) ⇒ Object


14
15
16
17
18
19
20
# File 'lib/jpmobile/trans_sid.rb', line 14

def extract_session_id(req)
  if req.params[@key] and !@cookie_only
    sid = req.params[@key]
  end
  sid ||= req.cookies[@key]
  sid
end