Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pallets/flask
/ clear
Function
clear
tests/test_basic.py:309–311 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
307
308
@app.route(
"/clear"
)
309
def
clear():
310
flask.session.pop(
"testing"
, None)
311
return
"Goodbye World"
312
313
rv = client.get(
"/"
,
"http://www.example.com:8080/test/"
)
314
cookie = rv.headers[
"set-cookie"
].lower()
Callers
nothing calls this directly
Calls
1
pop
Method · 0.45
Tested by
no test coverage detected