Happy holidays,
This problem is boggling my mind. It only happens when I put the code in the
'root' application. I'm trying to test for a 'session.userid' variable that
is supposed to be set after someone logs in with the correct username and
password. As you can see I am testing it by deleting my session variable and
the page with the login screen, which is a pop-up window, does come up.
Except that the pop-up window goes into an infinite loop of refreshing
itself. I can't figure it out. HELP!!
Thanks
<CFAPPLICATION NAME="Intranet" CLIENTMANAGEMENT="Yes"
SESSIONMANAGEMENT="Yes" SESSIONTIMEOUT="#CreateTimeSpan(1, 0, 0, 0)#">
<CFLOCK SCOPE="APPLICATION" TIMEOUT="30" TYPE="EXCLUSIVE">
<CFSET Application.Datasource = 'userpreferences'>
</CFLOCK>
<CFSET StructDelete(session,"userid")>
<CFIF NOT IsDefined("session.userid")>
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function openpopup(){
openpopup=window.open("login.cfm","newWin","width=200,height=150,left=400,
right=300")
}
</SCRIPT>
</HEAD>
<BODY ONLOAD="javascript:openpopup();openpopup.focus()">
</BODY>
</HTML>
<CFELSE>
<CFINCLUDE TEMPLATE="/application/header.cfm">
</CFIF>
~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server! Instant Activation for $99/month w/Free Setup
from SoloServer PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support Visit
SoloServer, https://secure.irides.com/clientsetup.cfm.
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists