Can anyone tell me how I might be able to increment a session variable by 1 each time a page loads. I want to find a way to keep track of how many times a user accesses a set of pages then once they have reached a certain number to be able to re-directed them elsewhere. I have an idea to put something like the code below on each page but am not sure how to make the session variable increment?
Code:<% If Session("User_Restricted") > 0 Then %> Add 1 to Session("User_Restricted") <% ElseIf Session("User_Restricted") = 10 Then %> Do this <% Else %> Do nothing <% End If %>


(right side on this reply ) and agree

