Using Flask's session infrastructure, implement a time-limited in-memory session interface for Flask…
Using Flask's session infrastructure, implement a time-limited in-memory session interface for Flask…: a task in repo2rlenv-code-instruct (Harbor dataset). Create a class TimedMemorySessionInterface that subclasses Flask's SessionInterface and stores sessions server-side in a plain Python dict…
The task
Create a class `TimedMemorySessionInterface` that subclasses Flask's `SessionInterface` and stores sessions server-side in a plain Python dict. Each session entry expires after a configurable `ttl` (time-to-live, in seconds, default 60). Also create a helper `build_timed_app` function that accepts a `secret_key` and…
Part of FineEnvs/repo2rlenv-code-instruct.