Detect The Page Realod In Php

[Solved] Detect The Page Realod In Php | Php - Code Explorer | yomemimo.com
Question : Detect the page realod in php

Answered by : farhad-sahil

$pageWasRefreshed = isset($_SERVER['HTTP_CACHE_CONTROL']) && $_SERVER['HTTP_CACHE_CONTROL'] === 'max-age=0';
if($pageWasRefreshed ) { //do something because page was refreshed;
} else { //do nothing;
}

Source : https://stackoverflow.com/questions/426258/setting-checked-for-a-checkbox-with-jquery | Last Update : Thu, 16 Dec 21

Answers related to detect the page realod in php

Code Explorer Popular Question For Php