Is there a way to make sessions timeout in Dash?

Is it possible to force a logout for the user from server after some arbitrary time of inactivity let’s say 1hr?

Yes, it is possible. You may refer to the docs of flask.session.

Can you please provide an example?
I tried to configure session but it doesn’t work:

from datetime import timedelta
import flask
import dash

server = flask.Flask(__name__)
app = dash.Dash(__name__, server = server, suppress_callback_exceptions=True, external_stylesheets=[dbc.themes.BOOTSTRAP, dbc.icons.FONT_AWESOME])
app.server.config['SECRET_KEY'] = '12345'
app.server.config['PERMANENT_SESSION'] =  True
app.server.config['PERMANENT_SESSION_LIFETIME'] =  timedelta(minutes=1)Preformatted text

Thank you in advance!

from flask import Flask, session

app = Flask(__name__)

def make_session_permanent():
    session.permanent = True
    app.permanent_session_lifetime = timedelta(minutes=5)

def logout():

Dash doesn’t provide many authentication features available in the open-source part. Or you can use dcc.Store to simulate session features.