I am not sure if using a CDN is appropriate here in the first place. The content I am hosting is an Apache(with PHP + MySQL) backend for a mobile application.
Instead of calling my PHP files through example.com/test.php, I am accessing them through Amazon's CloudFront CDN with a url of the form
RAND_ALPHA_NUMERIC.cloudfront.net/test.php
I noticed that calling the PHP file as such prevents the $_SESSION variable from properly working.
Anything I'm missing here? Is my approach all by itself flawed?
Thanks.