I have a one page website that uses AJAX to load new php files and update the display.
I start my php session on the main page but when I use ajax to update inner ht
You're trying to use existing session data from your application in an ajax call. To do that, change how you're calling session_start like so:
// With ajax calls
if (session_status()==1) {
session_start();
}
When making ajax calls to php scripts that need existing session data, use session_start after session_status.
http://php.net/session_status