victoria_1018
01-20-2003, 03:57 AM
Hi all,
I don't know if the following can be done and if it is possible, how should I go about doing it.
I had created about 5 asp programs and had an index page linking these five programs together.
However, these 5 programs are created individually and each of these programs has their own set of session, user_ID and password in-order for users to login to the system.
On all these 5 asp programs, I had created some security issue, which is user must login to the program before they can access to the content. If user tries to by-pass the login page by entering the program content's URL, the program will take user to the program login page and prompt him to login to the system.
Here is my question. I had created another login page using session. User have to login to this page in-order to access the index page, which is linking the 5 asp programs. The main aim of this new login page created is to prevent user from bypassing the index page and go straight to any of the 5-asp program Login page.
Is there a way to take user back to the main login page and prompt user to login if there are trying to bypass the main login and go directly to login to one of the 5 programs?
I had created a code
<%
If Session("UserLoggedIn") <> "true" Then
Response.Redirect("login.asp")
End If
Session("UserLoggedIn") = ""
%>
and works on the index page. With these codes, user will be re-directed to the main login page if they try to access the index page with logging in and it works.
However, I had some question creating the same thing in the 5 asp programs login pages as each of them have their own session and database storing the all user ID and Password.
Thanks
I don't know if the following can be done and if it is possible, how should I go about doing it.
I had created about 5 asp programs and had an index page linking these five programs together.
However, these 5 programs are created individually and each of these programs has their own set of session, user_ID and password in-order for users to login to the system.
On all these 5 asp programs, I had created some security issue, which is user must login to the program before they can access to the content. If user tries to by-pass the login page by entering the program content's URL, the program will take user to the program login page and prompt him to login to the system.
Here is my question. I had created another login page using session. User have to login to this page in-order to access the index page, which is linking the 5 asp programs. The main aim of this new login page created is to prevent user from bypassing the index page and go straight to any of the 5-asp program Login page.
Is there a way to take user back to the main login page and prompt user to login if there are trying to bypass the main login and go directly to login to one of the 5 programs?
I had created a code
<%
If Session("UserLoggedIn") <> "true" Then
Response.Redirect("login.asp")
End If
Session("UserLoggedIn") = ""
%>
and works on the index page. With these codes, user will be re-directed to the main login page if they try to access the index page with logging in and it works.
However, I had some question creating the same thing in the 5 asp programs login pages as each of them have their own session and database storing the all user ID and Password.
Thanks