Enabling session in lumen framework

前端 未结 4 990
抹茶落季
抹茶落季 2020-12-30 06:20

I have two (but let\'s image more) micro-services (API) which need to be aware of authenticated user. Ideally I would simple like to resume their sessions.

All micro

4条回答
  •  自闭症患者
    2020-12-30 06:48

    The accepted answer is outdated.

    I answered and explained a bit how to properly do it in my answer on this question

    I also posted what is the problem on my question at Laracasts

    To quote:

    the solution that is found in the link you gave is that, first it tells you to manually register the SessionManager to prevent the unresolvable depedency parameter #0 $app then also register the existing SessionServiceProvider which also binds another instance SessionManager.

    Problem with that is, some components use the other instance and other parts use the new one which causes my auth attempt session not being save despite actually being put inside.

提交回复
热议问题