"the change in value for country isnt being 'stored' as part of the
session" because you are saving it in the local (to the function) var
$country which goes out of scope when the function ends
Either use
$_SESSION['country']
or use
"global $country"
The former is preferable for readability and still leaves you with
$country to use locally.