Thanks, Darin, but I don't understand how to use this code. If I put it in the 
page which loads into the nested window, it never gets executed since the code 
in Application.cfm intercepts that page before it gets loaded, namely, the code 
below:

<cfif not Session.LoggedIn>
   <cfif cgi.script_name is not '/Login.cfm'>
      <cflocation url='/Login.cfm'>
   </cfif>
</cfif>

If I put it in the Login.cfm page, I would expect your code to simply close the 
window, and leave the user still in the page he tried to go to the nested page 
from. In any case when I do put it in the Login.cfm page (at the beginning - 
should I put it somewhere else?), it has no effect. I still get the Login.cfm 
page opening in the nested window...

Peyton

-----Original Message-----
>From: Darin Kohles <[EMAIL PROTECTED]>
>Sent: Mar 9, 2008 6:07 PM
>To: [email protected]
>Subject: Re: [ACFUG Discuss] Rip Van Winkle's Memory Fails
>
><cfsavecontent variable="headerStuff">
>       <cfoutput>
>               <script type="text/javascript">
>                       var isStillValid = #SESSION.loggedIn#; // Assuming you 
> have a Boolean var
>                       function checkStatus(){
>                               if(!isStillValid){
>                                       window.close();
>                               }
>                       }
>                       checkStatus();
>               </script>
>       </cfoutput>
></cfsavecontent>
><cfhtmlhead text="#headerStuff#">
>
>
>-------------------------------------------------------------
>Annual Sponsor FigLeaf Software - http://www.figleaf.com
>
>To unsubscribe from this list, manage your profile @ 
>http://www.acfug.org?fa=login.edituserform
>
>For more info, see http://www.acfug.org/mailinglists
>Archive @ http://www.mail-archive.com/discussion%40acfug.org/
>List hosted by http://www.fusionlink.com
>-------------------------------------------------------------
>
>
>



-------------------------------------------------------------
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------



Reply via email to