There was a task to intercept / track the restart on your own domain with the cookies disabled. Presumably, the only way is to get the expected headers from the server after the reboot and thereby fix the fact of the reload.
Form the title:
header('Cache-Control: max-age=1234567'); header('Location: http://mydomain.com'); exit; I'm trying to get an array with the present Cache-Control key and the expected value of 1234567 .
When using the getallheaders() function, or in general there is no array element with this key, or (after an additional reboot) another element value: [Cache-Control] => max-age=0
When using apache_request_headers() I get only one array element: [X-Powered-By] => PHP/5.3.5 (on localhost) and generally an empty array when reloading on a real server.
I ask for advice and help: how to set, get and process arbitrary server headers ?
The main question is: is there any other way to identify a re-entry to the site after a reboot, except for processing arbitrarily defined headers with cookies disabled?