L
Lars Netzel
This is basic Session handling but it's not working.
On a Page1.aspx I have this code:
-----------------------------------
If TextBox1.Text = "admin" And TextBox2.Text = "Admin01" Then
Session("admin") = "True"
Response.Redirect("Page2.aspx")
End If
---------------------------------
On Page2.aspx I have this code
------------------------------------------------
Response.Write(Session("admin"))
------------------------------------------------
I get nothing... and if I debug, the Session("admin"´) is Nothing...
Do I need to do something to turn session handlign on?
best regards/
Lars
On a Page1.aspx I have this code:
-----------------------------------
If TextBox1.Text = "admin" And TextBox2.Text = "Admin01" Then
Session("admin") = "True"
Response.Redirect("Page2.aspx")
End If
---------------------------------
On Page2.aspx I have this code
------------------------------------------------
Response.Write(Session("admin"))
------------------------------------------------
I get nothing... and if I debug, the Session("admin"´) is Nothing...
Do I need to do something to turn session handlign on?
best regards/
Lars