0

On page load i get current Datetime , and then I need to redirect user after 1 hour spend on the page.

1 Answer 1

2

This isn't really controller logic unless you were using an async controller to do some async work server side. Then you could add this async timeout attribute: [AsyncTimeout(3600000)].

Otherwise, I'd do the timeout in javascript/jquery where I'd set a timer and after one hour do redirect in the js or call a controller to handle the redirect.

Sign up to request clarification or add additional context in comments.

1 Comment

What Amurra said. You'll need to implement a javascript timeout on the page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.