I'm trying to get an understanding of constants.
I have seen some code where a constant is checked in and if absent then a new value is set using defined.
eg
if ( !defined( 'SOMEVAR')) define('SOMEVAR', $val);
Now the intent of this code is that SOMEVAR is carried through to all subsequent pages at this site but is not available to other visitors. Is this correct?