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

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -