How to administratively invalidate a session that used “Remember Me” option?

本秂侑毒 提交于 2019-12-07 10:54:21

问题


I'm using Symfony 2.1.6 and PdoSessionStorage. I'm trying to add the same functionality that Facebook has to my application where you can show a user all the active sessions they have with the website (showing device type and location based on IP) and allow them to end any session if it looks suspicious.

Deleting the record from the PdoSessionStorage table doesn't work as the record is re-created automatically by Symfony again as soon as I perform activity again in that session (instead of Symfony detecting that the session was already removed and thus forcing the user to re-authenticate).

Is there any option to force a session that used "Remember Me" to re-authenticate with the system?

Thanks for any help.

来源:https://stackoverflow.com/questions/14184484/how-to-administratively-invalidate-a-session-that-used-remember-me-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!