I have tried using Hangfire to create a recurring job to run at 3 specific hours daily but i found out later it cannot access httpcontext to signout users, so what i did instead, hangfire task calls a stored procedure at the given hours and I have created a razor pages filter that will signout user depending on a boolean in database that is changed by the task.
I would like to know if is there a way to do this without having to hit the database every http request using the filter. For example,
I would like to log out the user automatically at 6:58am or 14:58pm or 22:58pm
how to achieve this?