c# - How to set time logout in MVC -
one user login in attendance user can logout in after 8 hours.
how should code in mvc jquery.
var usrtime = ctx.attendances.select(s => s.time && s.id == id);
this way user login time.
try
if (logouttime > usrtime) { window.location.href = '@url.action("actionname", "controllername")'; }
then in action log user out , redirect them login
Comments
Post a Comment