You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think aiohttp-session should provide a way to explicitly request a new session, ignoring the existence of a cookie.
Implementation
My initial thought is to pass an optional kwarg new=True to get_session, which in turn will pass it to the storage's load_session function to force it to return a new Session ignoring the presence of any cookie.
Background
This is another window for Session Fixation, although this does not affect aiohttp-session itself like #272 but the application logic. I think that providing a way to explicitly request a new session (and encouraging the use of it in documentation and examples related to login functionality) would greatly benefit the users of aiohttp-session in terms of writing more secure code.
General
I think
aiohttp-session
should provide a way to explicitly request a new session, ignoring the existence of a cookie.Implementation
My initial thought is to pass an optional kwarg
new=True
toget_session
, which in turn will pass it to the storage'sload_session
function to force it to return a new Session ignoring the presence of any cookie.Background
This is another window for Session Fixation, although this does not affect
aiohttp-session
itself like #272 but the application logic. I think that providing a way to explicitly request a new session (and encouraging the use of it in documentation and examples related to login functionality) would greatly benefit the users ofaiohttp-session
in terms of writing more secure code.Looking into OWASP's entry for Session Fixation:
@asvetlov do you agree with adding this feature ? If so I can have a PR ready during the weekend (to also add documentation and usage examples).
The text was updated successfully, but these errors were encountered: