User264732274 posted
i got a two line. one is
http://stackoverflow.com/a/27288275/728750
the above link is saying
It is possible , Facebook,G mail are 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 not clear.
how to implement this "you can use a DateTime value and invalidate all sessions that started prior to that time." ?
how to know when user session was started ?
i got a another good link
http://stackoverflow.com/a/5492396/728750
this line is not clear
authCookie.Expires < logoutTime.Value
how the above line would work. suppose i login to web site now and today date is 01/01/16 and login expire date is 07/01/16 and i force logout on 02/01/16 then how this expiry date 07/01/16 would be less than force logout date 02/01/16. this area is not
clear. anyone can help me to implement this. thanks