I have a JavaScript file that processes an AJAX request. This request processes a PHP file (which works fine). But when I want to call in this very PHP file my $_SESSION
$_SESSION
Add this to your ajax .php file
if( !isset( $_SESSION ) ){ session_start(); }
Ideally, you would have that in some common config file...