Limit one instance per user?

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
ZootSuitRyan

Limit one instance per user?

Post by ZootSuitRyan »

Has anyone created a way that one can only have one open ImageMagick instance active at one time? I am getting server oops (restarts) from users stopping/refreshing an upload form and repeating the process. My first thought is to use $_SESSION as the class variable and to test it's presence or value. I sure there's a better way and some expert has experience with this.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Limit one instance per user?

Post by anthony »

This is a web service usage limiting technique and has nothing to do with IM.
Usually it is done by session id's so that new requests from one user kills off, or otherwise controls older requests.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply