title: Flask-Session session not saving inside a Flask-SocketIO websocket request
body: <p>I am using Flask-Session with Flask-SocketIO, but when I try to save my session from inside a websocket, it does not store, even though I am using server side session storage. I am redirecting the user directly after the session is stored.</p>
  <pre class="lang-py prettyprint-override"><code>session['li'] = True
  session['id'] = account['id']
  session.modified = True
  </code></pre>
  <p>Flask 2.2.2<br />
  Flask-Session 0.4.0<br />
  Flask-SocketIO 5.3.0</p>