()
| 70 | ''' |
| 71 | @app.route("/logout",methods = ['GET','POST']) |
| 72 | def logout(): |
| 73 | session.pop('user') |
| 74 | session.pop('email') |
| 75 | flash("User logged out successfully!") |
| 76 | return redirect("/") |
| 77 | |
| 78 | |
| 79 | '''This is an important middleware that run before any request made to flask application and checks |