Session Objects not Updating ASP.NET

Posted by davemackey on Stack Overflow See other posts from Stack Overflow or by davemackey
Published on 2010-04-27T21:29:11Z Indexed on 2010/04/27 21:33 UTC
Read the original article Hit count: 439

I set a session object at one juncture in my code:

Session("my_name") = "Dave"

Later in my code I give the user a chance to update this object:

Session("my_name") = TextBox1.Text

I reload my page and display a little hello statement like this:

Label1.Text = "Hello" & CStr(Session("my_name"))

The result is: "Hello Dave" no matter what I change Session("my_name") too.

© Stack Overflow or respective owner

Related posts about session

Related posts about ASP.NET