bbangert / beaker

WSGI middleware for sessions and caching
https://beaker.readthedocs.org/
Other
517 stars 147 forks source link

Cookie expiration does not update after access #200

Open drum445 opened 3 years ago

drum445 commented 3 years ago

When accessing a cookie, the expiration date should be updated. For example, if my session.cookie_expires is 500, the expiry date of the cookie should always be last_accessed + 500 seconds.

Is this the expected behaviour for beaker, as it is for Sinatra, PHP and Flask?

Currently I have to use a before_request hook and call _update_cookie_out to make this possible