rodentcentre
MIS
I am coding an ASP page that seems to be going into an infinite loop and I have no idea why. Basically, I have a login page where, well, people log into the system. When a successful log in is reached the Session("UserId") is populated. In all of my subsequent pages I have listed at the top:
I have the Session timeout at 20 minutes in IIS so that the user needs to log in again after 20 minutes. Well when the timeout is reached, the user is redirected to the login.asp and the page keeps reloading infinitely...can anyone tell me what is going on??
Code:
<%
If Session("UserId") = "" Then
Server.Transfer "login.asp"
End If
%>