Asp.net mvc ASP.NET MVC:如何在所有设备上实现注销

Asp.net mvc ASP.NET MVC:如何在所有设备上实现注销,asp.net-mvc,Asp.net Mvc,我有两行,一行是: 上面的链接是这样说的: 如何知道用户会话何时启动 我得到了另一个很好的链接: 这条线不清楚: authCookie.Expires

我有两行,一行是:

上面的链接是这样说的: 如何知道用户会话何时启动

我得到了另一个很好的链接:

这条线不清楚:
authCookie.Expires

这条线将如何运作?假设我现在登录到网站,今天的日期是2016年1月1日,登录过期日期是2016年7月1日,我在2016年2月1日强制注销,那么2016年7月1日的过期日期将如何小于2016年2月1日的强制注销日期。这还不清楚。谁能帮我实现这个?谢谢。

没有人知道答案?请在问题中具体说明。您的确切问题是什么?您希望如何解决它?请查看我发布的第二个链接,并告诉我这行代码“authCookie.ExpiresIt is possible , Facebook, Gmail have done that , But it is not simple. Use a flag in the database that checks users on Session_Start that invalidates their session If that flag is set. May not necessarily use a Boolean, you can use a DateTime value and invalidate all sessions that started prior to that time. This could be done by checking a value stored in a cookie upon login. What they trying to say is not clear. How to implement this "you can use a DateTime value and invalidate all sessions that started prior to that time."?
authCookie.Expires < logoutTime.Value