Page 1 of 1

Checking clicks over two times by same user

Posted: Tue Jul 12, 2005 12:54 am
by nyy2000
I am trying to decrease the server requests when user clicks on the link/submit the form two or more times.
When server is running slow, the page shows slowly, so user is tend to click the link/submit few more times. I want to detect this and cancel the process.
Does PHP have function to check whether the process is already running or not?
Right now, I put some JavaScript code to detect the double clicks and submits, and when the link/form was already clicked/submitted, then it returns false.
Can same sort of things be done in PHP or Apache?

Thanks,

Posted: Tue Jul 12, 2005 3:30 am
by onion2k
No. As far as Apache is concerned every request is seperate.