How do I restrict a user fror 10 min after running a web function before he can run it again using asp.net c#

Function returns production information and need to restrict the user as the databse only updates every few min.

I think the easiest option might be to include a new table in your database that has the user ID and the time they executed the function (and other other functions that need the same restriction) and the function name. Then you can run a check against the table whenever a user tries. It should be fairly fast as long as you include code to regularly clear out the table.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.