Python & Web Servers
On Monday I deployed the Flask app we made in a single CC prompt. Seemingly to me and my mate, the app allowed the user to log in.
Due to the app being online, we tested it in a multiuser scenario and discovered that the app served the info of the user, latest to “log in” to all clients connecting to the server.
Django has always been doing authentication and user sessions for me that I never even thought of it as a concept.
This case also made me wonder: how does the server’s Python runtime (the set of active variables, including user data) relate to the request-response cycle with each active client.