I'm just getting into SPAs with PHP and AJAX, and from the W3 Example:
xmlhttp.open("GET", "gethint.php?q=" + str, true);
xmlhttp.send();
You can access the PHP directly at https://www.w3schools.com/php/gethint.php?q=an
I want my website to function similarly in regard to SPA, but I want to ensure that the user is logged in and a 'premium' member to be able to access the URL. Is there something I can do with SESSION
or something among those lines?