PassportJS Session Mixed Up

后端 未结 1 601
太阳男子
太阳男子 2021-02-19 05:09

On our ExpressJS application, when pushed to production server, the passport session gets mixed up at random times. At random, the page can load the view of another user even wh

相关标签:
1条回答
  • 2021-02-19 05:54

    The problem seems to be caching caused by ExpressJS, not PassportJS session.

    We found out that ExpressJS sets the setting view cache to true when in production. By using app.disable('view cache'); in app.js, we disabled cache and seems to have solved the problem.

    0 讨论(0)
提交回复
热议问题