title: State Management (Session)
body: <p>I have one listBox named lstKosnicka and one ADD button named btnDodadi.</p>
  
  <pre><code>protected void btnDodadi_Click(object sender, EventArgs e)
  {
      DodadiVoKosnicka kosnicka = new DodadiVoKosnicka();
      ListItem stavka = new ListItem();
      List&lt;ListItem&gt; lista = new List&lt;ListItem&gt;();
      stavka = kosnicka.novaStavka(lstPredlog.SelectedItem.Text);
  
      lstKosnicka.DataSource = Session["kosnicka"] as List&lt;ListItem&gt;;
      lstKosnicka.Items.Add(stavka);
      lstKosnicka.DataBind();
      Session["kosnicka"] = lstKosnicka;
      lstPredlog.SelectedIndex = -1;
  
  }
  </code></pre>
  
  <p>There is one more webForm with other listbox named lstKosnickaNajava, and I want to fill this list wtih the same items as lstKosnicka using Session["kosnicka"], but something is wrong. here is Najava.aspx code: </p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
  
  
  
      HttpCookie kolace = Request.Cookies["korisnik"];
      if (kolace != null)
      {
          lblNajavenKorisnik.Text = "Најавен коринсик " + kolace["KorisnickoIme"];
      }
      else
      {
          lblNajavenKorisnik.Text = "Нема најавени корисници";
      }
  
      if (!IsPostBack)
      {
  
          lstKosnickaNajava.DataSource = Session["kosnicka"] as List&lt;ListItem&gt;;
  
          lstKosnickaNajava.DataBind();
  
      }
  }
  </code></pre>
  
  <p>but when I go from the first page to Najava.aspx the lstKosnickaNajava is empty.</p>