Is there a way to run a PHP FUNCTION \"fun();\" only once when a logged in user accesses a page multiple times?
here is the function.
Can you not run the function, then store a $_SESSION variable? For example:
$_SESSION
if (!isset($_SESSION['function_ran']) || $_SESSION['function_ran'] != '1') { fun(); // run function $_SESSION['function_ran'] = '1'; }