I have the next problem: I need to process only 1 request at a time from each user. Lets assume that server identifies each user be UserID, sent in query string.
How can make the server work the way like FIFO (do not start processing next request until the previous is fully processed)?
Should I use the named mutexes inside HTTP handler and assign the name to mutex by UserID?
Thanks in advance,
Valentin
When the first request comes, Set a flag in Session. Reset this flag only after the processing of the first request completes.
If the user requests again, without having the first request completed, just reject the request by returning from ProcessRequest() without any further line of code executed. Additionally you can reply the user back with appropriate status-message.
EDIT