Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flask DispatcherMiddleware Session

Tags:

python

flask

I am developping Flask application.

I am using DispatcherMiddleware to combine my applications

app.wsgi_app = DispatcherMiddleware( app.wsgi_app, {'/health': subapp.wsgi_app} )    

Is there a way that my main app and my subapp could share the same session ?

like image 907
gpasse Avatar asked Aug 15 '26 15:08

gpasse


1 Answers

You can access the session by adding the same secret key to both applications.

like image 125
gpasse Avatar answered Aug 18 '26 04:08

gpasse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!