Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When using Flask login with multiple users and sharing the same session, there is a risk of user data being overwritten or mixed up. As each user's information is stored in the session cookie, if two users log in from the same browser, their sessions may overlap or overwrite each other, leading to unexpected behavior and security vulnerabilities. Additionally, if one user logs out and the session is not properly cleared, the next user to log in could potentially gain access to the previous user's data. This can lead to confidentiality breaches and other security issues. Therefore, it is recommended to use separate sessions for each user to ensure user data is properly isolated and secured.