ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 7th, 2003, 10:19 AM
amateurASP amateurASP is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 81 amateurASP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 16 m 28 sec
Reputation Power: 5
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

Reply With Quote
  #2  
Old October 7th, 2003, 10:29 AM
aspman aspman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Ashburn,VA
Posts: 105 aspman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 22 m 40 sec
Reputation Power: 5
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Opening Login Checker in a new window


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway