I have a master page with the following vb code in the code file…
Public Sub Page_Load(ByVal Sender As Object, ByVal E As EventArgs)
If Not IsPostBack Then
If Session("key") Is Nothing Then
Session("key") = 0
Else
Session("key") = Session("key") + 1
End If
Response.write(Session("key"))
LoadData()
End If
End Sub
This should write a number to the top of each page saying how many pages have been visited… It stays at zero all the time though.
Any ideas??
Be sure to search your code in your master page and containing page for any
Session.Abandon()I ran into this problem a while back and didn’t realise another developer had put that in.