Похожие чаты

Hello guys, I have a doubt about javascript timers (setinterval/settimeout)

integrated with AJAX. Every x seconds I'm running an AJAX request to my server in order to refresh a widget in my page. Should I add a check of the timer also server side (since the javascript timer can be manipulated) or it's not worthed?

2 ответов

17 просмотров

depends on the use case. if it doesn't really matter and things only break on the client side, it's probably fine. if it's important for them to be in sync, then do.

How can you even check the timer on server side?

Похожие вопросы

Карта сайта