Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[PHP] Refresh limit..

Experienced Elementalist
Joined
Sep 10, 2006
Messages
213
Reaction score
1
Anybody know how to limit refresh, example after i refresh my site, i can't refresh again until 30second.. How to make that??
 
Custom Title Activated
Loyal Member
Joined
Jun 28, 2007
Messages
2,986
Reaction score
3
Re: Refresh limit..

Make a table with unique session ID in a DB, and record the last refresh time...then simply check if the ID exists and has a last refresh time lower then 30 seconds.

Record time as 'time()', and simply check if the current time minus the recorded time is bigger then 30, then refresh is allowed.
 
Back
Top