Peyton, try this in the code on the login page :
<cfsavecontent variable="headerStuff">
<cfoutput>
<script type="text/javascript">
var isStillValid = #SESSION.loggedIn#; //
Assuming you have a Boolean var
function checkStatus(){
if(!isStillValid && window.opener != null){
window.opener.location.href =
'Login.cfm';;
window.close();
}
}
checkStatus();
</script>
</cfoutput>
</cfsavecontent>
<cfhtmlhead text="#headerStuff#">
The window.opener property will be set if you have used window.open()
to create the new window.
On Sun, Mar 9, 2008 at 9:51 PM, Peyton Todd <[EMAIL PROTECTED]> wrote:
> If I put it in the Application.cfm page, that doesn't help either...
>
>
>
> -----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
> -------------------------------------------------------------
>
>
>
>
--
Darin Kohles
RIA Application Developer
-------------------------------------------------------------
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
-------------------------------------------------------------