I am having many files with multple includes one into another like below,
File1 is included in File2 and then File2 is under File3
Now I want to declare a session variable site_user_conutry from File1 and then I am checking on File2 that if there is any no value in the session variable then Only I am including File1.php
I have added session_start(); in each [age but still its not working ??
Please tell me how can I make session work in the above condition.
How are you setting the session variable? You should try setting it like so:
Have you placed session_start() at the very top of the document, or at least before you output any information?