x-requested-with missing in php $_SERVER variable when using apache?

chronoel

New member
hi, i'm having a problem. i'm requesting some content from the apache server using ajax. in php, i want to detect if the request was done through ajax and i know the way to detect this is to see if x-request-with is in the $_SERVER variable. i checked HTTP_X_REQUEST_WITH but it's missing.

i don't know but what are possible causes why this may be lost? if this will help, i'm using an alias to access my pages.

thanks!
 
Back
Top