Method: RubyApp::Session.get_session
- Defined in:
- lib/ruby_app/session.rb
.get_session(session_id) ⇒ Object
130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/ruby_app/session.rb', line 130 def self.get_session(session_id) session = RubyApp::Session.sessions[session_id] if session unless session.expired? session.reset_expiry! return session else session.quit! return nil end else return nil end end |