@app.route('/securitykey.html')
def securitykey():
if request.cookies.get('SecurityKey') == app.newcookie:
return redirect(url_for('masterpage'))
else:
return render_template('login.html')
@app.route('/masterpage.html')
def masterpage():
if request.cookies.get('SecurityKey') == app.newcookie:
return render_template('masterpage.html')
else:
return redirect(url_for('incorrectkey'))
when i go to securitykey.html i have the cookie but it doesn't redirect me. if you have any tips how i could change my login&security system tell me, ty