Use a link to change a session variable
I have a dual language website which works with a session variable for the user's language and displays the relevant content like this:
<?php if ($_SESSION['Language'] == "en") { // Show if column... ?>English text<?php } // Show if column... ?>
<?php if ($_SESSION['Language'] == "ru") { // Show if column... ?>Russian text<?php } // Show if column... ?>
I'd like to provide a link to allow users to change the session value themselves to the other language, so an English user clicks the link and the page would display the Russian text, and vice versa. How would I do this?