title: Flask handle multiple users and app termination
body: <p>I have a flask application that contains a chatbot, deployed successfully on pythonanywhere.com but the problem is it serves one user only. I tried the code below but did not work.</p>
  
  <pre><code>app.run(threaded=True)
  </code></pre>
  
  <p>(EDIT): Here is the route of the home page where the chatbot exist</p>
  
  <pre><code>@app.route('/bhome')
  def Bhome():
      if session['logged_in'] == False:  
          return render_template('Login.html')
          user = session['username']
          return render_template('b/home.html')
  </code></pre>
  
  <p>The other problem I have is when the user refreshes the page the chat should be terminated and start over again but it doesn't, how can I fix that?</p>