title: Flask socket-io returns different SID each request
body: <p>I am trying to implement a socket app using flask-socketio that can send private messages, and one thing that I need to do is store the request.sid for each user so that I can send messages directly to that user. Although, every time the user sends a request, their request.sid changes. This is some sample code that I am using to check the users sid:</p>
  <pre><code>@socket_.on('check_requestid', namespace='/check')
  def check():
      print(request.sid)
  </code></pre>
  <p>This is my socket init code:</p>
  <pre><code>app = Flask(__name__)
  app.secret_key = &quot;Secret_Key&quot;
  #SocketIO
  socket_ = SocketIO(app)
  </code></pre>
  <p>I am not sure what is happening and why my socket connection keeps changing its sid.</p>