Very simple bit of code below works on several apache/php servers but not on the one used by my commercial hosting service. (I will be asking them about this soon, but thought I might a quicker response here) The code increments and displays the "counter" variable every time I reload (refresh) the page - except on my commercial hosting service (which will remain nameless for the time being - big one) Heres the code:
<?php
session_start();
$_SESSION['counter']++;
echo 'counter: '.$_SESSION['counter'].' ';
?>
The PHP version on my commercial host is 7.3.xx Nothing happens when I refresh the page. The lamp and wamp stacks I have tried this on are 7.3.xx also - and it also works on an older installation I have that runs PHP 5.4
When it works, the pages increments the number, on my commercial host, it remains "1" every time I refresh.