Skip to content

Commit

Permalink
cookie-monitoring guide: filter by name
Browse files Browse the repository at this point in the history
  • Loading branch information
aviau committed Nov 5, 2024
1 parent 427fa4a commit e616e5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guides/cookie-monitoring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ for resp in api_client.scroll(
"from": last_from,
"domain": "scatterholt.com",
"paths": ["/", "/login"],
"names": ["session"],
"expires_after": datetime.now(
timezone.utc
).isoformat(), # Search for cookies not yet expired
Expand All @@ -89,9 +90,8 @@ for resp in api_client.scroll(

# Iterate on cookies in the current page
for cookie in resp_data["items"]:
if cookie["name"] == "session-token":
# Invalidate the cookie here
print(f"{cookie['value']}")
# Invalidate the cookie here
print(f"{cookie['value']}")
```
</Accordion>

Expand Down

0 comments on commit e616e5d

Please sign in to comment.