Rich, how about this? A friend of mine found this (or invented it).
Put it in your global.asa file in the Session_OnStart routine.
' If someone initially tries to load any page other than the
' start page, redirect them.
' NOTE - If the redirect happens, the rest of this function
' is not executed, so be sure this is LAST!
Session("requestedPage") = Request.ServerVariables("SCRIPT_NAME")
if not (STRCOMP(Application("StartPage"), Session("requestedPage"),
vbTextCompare)=0) then
Response.Redirect Application("StartPage")
end if
Works for me. No cookies (other than ASP's own). Just set
Application("StartPage") to "login.asp" (or whatever you're using) in
your Application_OnStart routine.
Tom
On Tue, 9 Sep 2003 07:52:56 -0700, "Rich" <rp*****@aol.com> wrote:
Thank you all for your responses. This really helps me
out. I actually know how to do this stuff in JSP, but I
don't want to use Tomcat because I am all hooked up with
IIS/SqlServer now. My vbscripting is weak, at best. Oh
well. I will be hanging around here a lot :).
Thanks again,
Rich
-----Original Message-----
Hello,
I need users to access a data entry asp page via a login
page. If they bookmark the data entry asp I want to
redirect them to the login page (using IIS). Here is
whatI had in mind:
<%@ LANGUAGE=JScript %>
<HTML>
<HEAD>
<TITLE>Home Page</TITLE>
<script language="JavaScript">
function myFunction(s){
....
location.href='insert.htm';}
</SCRIPT>
</HEAD>
<body onLoad="myFunction('<%Response.write(Request.Form
("testfld"));%>')">
....
Isn't there some kind of authentication method for IIS,
orat least a less kludgy way of doing this than what I have
above? Just checking.
Thanks,
Rich
.