This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/main by this push:
new 529347d Clear a session before setting an impersonated session
529347d is described below
commit 529347d713682e0ab7894b4a95ab64c1156434f5
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Jan 27 17:33:39 2026 +0000
Clear a session before setting an impersonated session
---
atr/admin/__init__.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/atr/admin/__init__.py b/atr/admin/__init__.py
index 5037a5e..e509b7c 100644
--- a/atr/admin/__init__.py
+++ b/atr/admin/__init__.py
@@ -163,6 +163,7 @@ async def browse_as_post(session: web.Committer,
browse_form: BrowseAsUserForm)
bind_password,
)
log.info(f"New Quart cookie (not ASFQuart session) data: {log_safe_data}")
+ await asfquart.session.clear()
asfquart.session.write(new_session_data)
await quart.flash(
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]