$_get and session. Can't get it to work
<p>Can anyone tell me why this doesn't work?</p>

<pre><code>&lt;?php
$lang = $_get["lang"];
if (($lang == "fr"))
{
    session_destroy();
    session_start(); 
    $_SESSION['lang'] == "fr";  
}

if (($lang == "en"))
{
    session_destroy();
    session_start(); 
    $_SESSION['lang'] == "en";      
}

if (isset($_SESSION['lang']))
{
    $lang = $_SESSION['lang'];
}
else
{
    $lang = "fr";            
}
?&gt;
</code></pre>

<p>I just can't seem to get it to work and I tried a lot of different things. Just need a direction to the mistake.</p>

<p>It's running on PHP5 on an Apache server if that's any help.</p>

<p>Even without the session I can't even get the $_get to work. With normally is never the case.</p>
