title: Sinatra + Rack::Session::Pool + Moneta
body: <p>I'm using server side session handling with Moneta in my Sinatra application.</p>
  
  <p>The part of my config.ru looks like that:</p>
  
  <pre><code>require 'rack/session/moneta'
  
  use Rack::Session::Moneta do
    use :Expires
    adapter :Memory
  end
  </code></pre>
  
  <p>How long does is take for sessions to expire? I couldn't find documentation for it.
  I currently delete sessions with</p>
  
  <pre><code>get '/logout'
      session.destroy
  end
  </code></pre>
  
  <p>But I believe that only destroys the session cookie on the client side.
  How can I find the sessions which are currently active?</p>
  
  <p>There is a variable called @pool in Rack::Session. How can I access it from my Sinatra app?</p>