Cokies

What Are they Used for?

Lifespan of a Cookie

@app.route('/delete-cookie/')
def delete_cookie():
res = make_response('Your desired message')
res.set_cookie('foo', 'bar', max_age=0)
return res

Cookies in various Web Frameworks

Flask

See Cookies in Flask for a detailed explanation of how to do this in flask

References