I think session and cookie are used when I want some values to be passed along when the user navigate the webpages.
Using 'include' and a file to hold a global variable accessible to all PHP files is for sake that I may change the value of some variable by hard-coding, and it has nothing related to the users.
These are my understanding.