SyntaxFix
Write A Post
Hire A Developer
Questions
put your session() auth in all server side pages accepting an ajax request:
if(require_once("auth.php")) { //run json code } // do nothing otherwise
that's about the only way I've ever done it.