SQRL-For-Dot-Net-Standard icon indicating copy to clipboard operation
SQRL-For-Dot-Net-Standard copied to clipboard

Add polling timeout configuration

Open DBADougE opened this issue 5 years ago • 1 comments

I'm running my website on Azure App services. The lower priced service tiers have limits on hours/day of compute time. If someone leaves their browser on the login screen it seems to poll the web server continuously. This also can consume unnecessary overhead. If they haven't logged in after 5 minutes or so they probably went to lunch or home for the day.

I'd like a configuration to stop the polling after X minutes.

Capture

DBADougE avatar Oct 28 '19 00:10 DBADougE

This is a grate idea especially in a cloud service deployment situation like yourself.

So we already have CheckMilliSeconds to help reduce the polling time if your using a helper or default login page. If you are doing a custom login page you have control of this anyway and can change the polling in whatever way you need.

I agree adding an extra option for helpers and the default page is a good idea.

I propose a name of MaxCheckCalls which would be an optional value if not set acting as it does today and if set would stop polling once the count is reached.

TechLiam avatar Oct 28 '19 07:10 TechLiam