阅读背景:

为什么在中间件中调用logout()不适用于当前请求?

来源:互联网 

I've built a small custom middleware to log out the user and flush the session conditionally. I'd expect the current request to have the user logged out. However, for the request/response currently being processed, I still have a full response as if the user hadn't been logged out and the session is perfectly available (unexpected). All subsequent request don't have the session anymore (as expected).I've built a small custom middleware to log out




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: