I'm having a serious problem, I created my site for different users to sign up and view their different profiles at same time but what I'm having here is different users viewing the last login profile at same time. I use this
profile_data={}
@app.route("/login", methods=["GET","POST"]
def login():
global profile_data
If request.method=="GET":
return render_template("login.html", profile=profile_data)
If request.method=="POST":
profile_data=db_query(email)
return render_template(home.html, profile=profile_data)
I just typed this code now not exactly what I may have on my script but same ideology. Everything is working fine just that I want different users to access their different profile at same time. Thanks in anticipation