python - Call a function when Flask session expires -


in flask application, saving files correspond user, , want delete these files when user's "session" expires. possible detect session expiration , call function?

yeah kind of possible run loop see until session['key']==none , if condition becomes true call function. hope helps!!!


Comments

Popular posts from this blog

python - Setting ctypes.Structure default values -

Ansible - ERROR! the field 'hosts' is required but was not set -

java - HTTP Status 500 - No data type for node: org.hibernate.hql.internal.ast.tree.IdentNode -