Why with some browsers i get a wrong value for my Session object?
<p>I am coding an asian language learning module for my mojoportal-based iphone-optimized website (work in progress, english resources are not fully translated: <a href="http://ilearn.dandandin.it/kanatrainer.aspx" rel="nofollow">http://ilearn.dandandin.it/kanatrainer.aspx</a>)</p>

<p>It's a simple "guess how to read this" game, with the right answer stored in a Session object.</p>

<p>I don't understand why, but, expecially using Safari, users will get someone else's Session value</p>

<p>This is an excerpt from the code (i removed some stuff, translated the variables)</p>

<pre><code>    protected void Page_Load(object sender, EventArgs e)

    {

    if (!Page.IsPostBack)
        {
        ...
        generateRandom();
        }
    }

    protected void generateRandom()
    {
        int i, j = 0, livello = 5, chance = 0;
        System.Random acaso = new Random();
        ...
        while (j &lt;= 0)
        {
            j = acaso.Next((Convert.ToInt32(TextBoxlunghezza.Text) + 1));
        }
        ...
        for (int k = 0; k &lt; j; k++)
        {
            i = acaso.Next(livello);
            Session["randomLetters"] += (globals.asianCharacters[i]);
            ...
        }
        ...
    }


    protected void AnswerButton_Click(object sender, EventArgs e)
    {
        string compare = Server.HtmlEncode(InputTextBox.Text.ToLower());
        if (compare == "")
        {
            Label1.Text = ("You did not write anything");
            return;
        }
        if (Session["randomLetters"].ToString() != compare)
        {
            Label1.Text = ("Wrong!" + Session["randomLetters"]);
        }
        else
        {
            Label1.Text = ("Right!" + Session["randomLetters"]);
        }
     ...
    }
</code></pre>

<p>What happens in visual studio, with every browser:</p>

<p>randomLetters is "hello". User writes "hello" in the textbox, and "hello" is compared to "hello". Label says "Right! hello".</p>

<p>What happens in iis, only in webkit-based browsers:</p>

<p>randomLetters is "hello". User writes "hello" in the textbox, but "hello" is compared to "goodbye". Label says "Wrong! goodbye".</p>

<p><strong>I don't understand how Session["randomLetters"] has changed</strong></p>

<p>Public vs private code:
<img src="http://i.stack.imgur.com/1lVAN.jpg" alt="the code"></p>
