diff --git a/app/__init__.py b/app/__init__.py index 7ee0ff1..46faa17 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -74,6 +74,11 @@ def create_app(): app.register_blueprint(topics_bp) app.register_blueprint(users_bp) + app.config['SESSION_COOKIE_SECURE'] = True + + @app.before_request + def make_session_permanent(): + session.permanent = True @app.context_processor def inject_constants():