If I reload my page I lose the original value of the session variable. So the first time I sign-on to the page, I can view the user. However, if I reload the page, the session variable "WelcomeUserNew" gets wiped-out. Any ideas?
Protected Sub form1_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Init
' Writing to session variable
If Request.QueryString("WelcomeUser") <> "" Then
Session("WelcomeUserNew") = Request.QueryString("WelcomeUser")
End If
If Session("WelcomeUserNew") IsNot Nothing Then
Welcome.Text = Session("WelcomeUserNew").ToString()
End If
End Sub
Protected Sub form1_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Init
' Writing to session variable
If Request.QueryString("WelcomeUser") <> "" Then
Session("WelcomeUserNew") = Request.QueryString("WelcomeUser")
End If
If Session("WelcomeUserNew") IsNot Nothing Then
Welcome.Text = Session("WelcomeUserNew").ToString()
End If
End Sub