I’m surprised no on has answered this question. It seems like there should be some type of config variable SESSION_PERMANENT = True. But unfortunately there isn’t. As you mentioned this is the best way to do it.
@app.before_request
def make_session_permanent():
session.permanent = True