hapi js中是否有类似req.session.destroy()的等效方法来销毁会话?
is there any equivalent method like req.session.destroy() in hapi js to destroy session?
我想在用户注销我的应用程序后销毁会话。我知道如何在 express 中像 req.session.destroy()
那样做。 hapi.js中是否有类似req.session.destroy()
的等效方法来销毁会话?
这取决于您使用的插件。
例如,我使用 hapi-auth-cookie 并且有一个方法 request.cookieAuth.clear()
我想在用户注销我的应用程序后销毁会话。我知道如何在 express 中像 req.session.destroy()
那样做。 hapi.js中是否有类似req.session.destroy()
的等效方法来销毁会话?
这取决于您使用的插件。
例如,我使用 hapi-auth-cookie 并且有一个方法 request.cookieAuth.clear()