Computer scienceBackendFlaskUser-specified interactions

Flask Sessions

Theory

Order

Report a typo

Rearrange the lines to create a valid Flask application. Use a single indentation inside the function.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                session["name"] = name
              
                @app.route("/set_name")
              
                def set_name():
              
                app.secret_key = "your secret key"
              
                name = request.args.get("name")
              
                app = Flask(__name__)
              
                return "Name set"
              
                from flask import Flask, session
              

Create a free account to access the full topic