I have created data access pages and a logon page in asp.However there is a file tiltled securitycheck.asp that need to included in all DAP's. Here is the code of this file:
<%
'This Page is a Security Check Page
'This code checks if the user has logged in.
'It checks the session variable called loginID.
'This session is created whenever a user has sucessfully logged on.
'This will also redirect the user if they are inactive for a period of time.
'This period is defined in IIS and by default is 15 minutes (I think)
If session("loginID") = "" then
Response.redirect "default.asp?strMsg=You have been logged out for security reasons"
else
end if
%>
If i wont include this file , users can directly enter the dap url and thus skip login page. Could someone tell me how to add this file in a DAP code or what is equivalent of this code in VBS. Will appreciate your help.
Sam
<%
'This Page is a Security Check Page
'This code checks if the user has logged in.
'It checks the session variable called loginID.
'This session is created whenever a user has sucessfully logged on.
'This will also redirect the user if they are inactive for a period of time.
'This period is defined in IIS and by default is 15 minutes (I think)
If session("loginID") = "" then
Response.redirect "default.asp?strMsg=You have been logged out for security reasons"
else
end if
%>
If i wont include this file , users can directly enter the dap url and thus skip login page. Could someone tell me how to add this file in a DAP code or what is equivalent of this code in VBS. Will appreciate your help.
Sam