Ask Your Question
0

What is the problem when using Flask login with multiple users and sharing the same session?

asked 2023-07-04 23:36:47 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-05 00:03:01 +0000

pufferfish gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-04 23:36:47 +0000

Seen: 8 times

Last updated: Jul 05 '23