J
John Wright
I use the following code to set a session variable for people I have
authenticated to my site:
For Each row As DataRow In foundRow
Session("Login") = row.Item(1).ToString
Exit For
Next
Response.Redirect(Request.QueryString("PageID"))
The Session("Login") get set just fine, but when I do the redirect the page
that loads checks for the following:
If Session("Login") = "" OrElse IsNothing(Session("Login")) Then
Response.Redirect("Login.aspx?PageID=" & Request.Path)
Else
Label1.Text &= " " & Session("Login").ToString
End If
When I check the session variable here, it is empty. Does anyone know why?
John
authenticated to my site:
For Each row As DataRow In foundRow
Session("Login") = row.Item(1).ToString
Exit For
Next
Response.Redirect(Request.QueryString("PageID"))
The Session("Login") get set just fine, but when I do the redirect the page
that loads checks for the following:
If Session("Login") = "" OrElse IsNothing(Session("Login")) Then
Response.Redirect("Login.aspx?PageID=" & Request.Path)
Else
Label1.Text &= " " & Session("Login").ToString
End If
When I check the session variable here, it is empty. Does anyone know why?
John