session_start(); if ($_GET['loc']) $_SESSION['mainCountry'] = $_GET['loc']; $mainCountry = $_SESSION['mainCountry']; ?>