I have a domain with several customer folders. Like this:
domainname/customer_1_folder
domainname/customer_2_folder
And so on...
I start a PHP session in the customer folder and the path to that folder must live as long as the browser is open. But my PHP script calls some .js files. And it seems that the session dies in the .js file. How do I use session_start() in a .js file in the correct way. Must I rename the .js file to .php?
All PHP scripts is located in the root of the domain because I want a bug fix or update to reach all customers at once in a fast and easy way.
Is there a better way to handle lots of customers?