|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Opening Login Checker in a new window
I have a login check that calls Login_Check.asp to place a cookie when the user correctly logs in or redirect to Login.asp if they haven't yet logged in. There are many pages that require the check before viewing. one of those pages opens in a split frame. When trying to access the framed page before login the login form opens in both frames. How do I open the login screen in a new window instead of in the frames?
"login.asa" contains password, "login.asp" is the login form <!--#include file="login.asa"--> <% ' Security check for cookie on local workstation vs. login and password ' if cookie do not match, redirect user If Request.Cookies("ADMIN")("login") <> Username or Request.Cookies("ADMIN")("pass") <> Password Then ' redirect user to login page Response.Redirect "login.asp" End If ' End security check, proceed with browsing %> go here to see the problem: http://www.ymcapa.org/2004_Interfac...base_editor.asp |
|
#2
|
|||
|
|||
|
Check if the user logged in or not and redirect them to the login page and not the page with the frames in them.
If you want to send the user to the page they were trying to access in the first place directly, store the URL in a session variable or as a query string and redirect once you are done with the login script.
__________________
If you ask a question you are a fool for a second. But if you dont ask, you are a fool for a life time. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Opening Login Checker in a new window |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|