I'm using a session variable to keep track of the current site language, three values are possible, 1. EN, 2. RU, 3. ES.
the session variable is set initially in the config file:
$_SESSION['lang'] = 'RU';
but inside my db class I cannot access the variable. My basic understanding is that variables stored in the $_SESSION
array are accessible throughout the site.
so what's the problem?