python - Flask-Login not working with two applications on same domain -


i have been using flask-login on <domain>/<app_1> year without issue. recently, built second application same stack , deployed <domain>/<app_2>. now, whenever log either app, kicks me out of other. there reason this? apps have different databases , secret keys, , have assumed have 2 cookies same domain.

i'm not familiar cookies , not sure how debug this. i'm happy provide headers or other information if people can tell me relevant.

you need configure cookies use separate paths.

app.config['remember_cookie_path'] = '/app_1' 

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -