I have an Angular/Flask web app and am trying to create an admin page that will be accessed by a certain url, say "/admin_page". The page will require additional authentication and needs to issue a session timeout that is shorter than the timeout for all the other users.
However, I'm under the impression that all sessions are generated from the same variable in my flask application, which I configure as such:
app.permanent_session_lifetime = timedelta(seconds=int)
So, my question is: Is there a way to change the session timeout length for certain users without affecting the timeout length of other users' sessions?
i.e.
If in my route handler for /admin_page
I temporarily change the value of app.permanent_session_lifetime
, create the user's session, and then restore the variable to its original value, will sessions that were created previously have their timeout value altered?