Forums

Handling multiple user requests?

I have a client program that sends images to be processed by the server.

Images get uploaded, saved to the server & processed, emailed back and the images are deleted. I assume there would be an issue if a second client uploaded to the server while it was processing the first set of images?

Is there a relatively easy way to avoid this scenario? Hope that makes sense.

If you do not keep your users separate and their files separate, then you will have an issue.

You can use a session variable to identify the user and then make sure that your files are named so that you can tell which ones apply to which session.

That makes sense, thanks for that!