title: how to send request in rails console with session?
body: <p>I know I can use <code>app.get</code> and <code>app.post</code> to test controller in Rails console.</p>
  
  <p>But how to set the <code>session</code>? I found there is <code>app.session</code>, but it seems not to preserve its status.</p>
  
  <pre><code>   $ app.session[:a] = "123"
     $ app.get "/"
     $ app.session
     =&gt; {}
  </code></pre>