title: Rails Session not persisting after browser refresh
body: <p>Navigating within the app and re-directs are all fine, its just when the browser refreshes the user has to log back in. I only want the session to expire when the browser closes and not on refresh..</p>
  
  <p>My session_store.rb</p>
  
  <pre><code>Rails.application.config.session_store :cookie_store, key:
  '_workspace_session'
  </code></pre>
  
  <p>My sessions controller new and create actions:</p>
  
  <pre><code>def new
  
  end
  
  
  def create
      merchant = Merchant.find_by(email: params[:email])
  
      if merchant &amp;&amp; merchant.authenticate(params[:password])
          session[:merchant_id] = merchant.id
          log_in(merchant)
          flash[:success] = "You were logged in successfully"
          redirect_to merchant_path(merchant.id)
      else
          flash.now[:danger] = "Snap! either your email or password is 
          incorrect. Try again"
          render 'new'
      end
  
  end
  </code></pre>