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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -