Highlighted

Closing Internet explorer window from Link in ColdFusion Page

Community Beginner ,
Jun 24, 2019

Copy link to clipboard

Copied

Hello,

We have a ColdFusion application that is currently using Oracle Authentication Manager (OAM) for logging people on to the application.  In the application there is a link titled "Log Off".  We have been instructed by our management stop using OAM.

I have now got the application so that they are logging in using Citrix Netscaler to login in to an Internet explorer window that is exclusive to this application and the login process is working correctly.  However when the "Log Off" link is clicked it is currently still redirecting to OAM for  the Log Off process.  This is confusing as the users are not logging in using OAM and, in the near future the OAM servers will be going away.

What I am trying to do is have the logoff page just close the internet explorer window when users click it.  After doing some searches on this I have tried modifying the logoff.cfm Page to the following. (Other then a header comment this is the entirety of the logoff.cfm page)

<!--- <cfloop collection="#cookie#" item="c">

    <cfcookie name="#c#" expires="now">

</cfloop> --->

ColdFusion.Window.Destroy()

<cfinclude template="_header.cfm">

<h1>You have been logged out</h1>

<cfinclude template="_footer.cfm">

<cfabort>

However, when I try clicking the link the Browser is not closing and it is still redirecting to the OAM log off page. does anyone have suggestions on how to be closing the window from the link?

Eric Lommatsch

I just figured out what I needed to do on my own based on how I am doing this.

I modified the "Close Window" Link to that is calling a close.html when it it clicked

onclick="window.open('close.html', '_self')"

Then close.html is running this command

<script>window.close();</script>

This is giving me the behavior I am looking for.

I answered my question myself, I should have been more patient.

Eric Lommatsch

Views

117

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Closing Internet explorer window from Link in ColdFusion Page

Community Beginner ,
Jun 24, 2019

Copy link to clipboard

Copied

Hello,

We have a ColdFusion application that is currently using Oracle Authentication Manager (OAM) for logging people on to the application.  In the application there is a link titled "Log Off".  We have been instructed by our management stop using OAM.

I have now got the application so that they are logging in using Citrix Netscaler to login in to an Internet explorer window that is exclusive to this application and the login process is working correctly.  However when the "Log Off" link is clicked it is currently still redirecting to OAM for  the Log Off process.  This is confusing as the users are not logging in using OAM and, in the near future the OAM servers will be going away.

What I am trying to do is have the logoff page just close the internet explorer window when users click it.  After doing some searches on this I have tried modifying the logoff.cfm Page to the following. (Other then a header comment this is the entirety of the logoff.cfm page)

<!--- <cfloop collection="#cookie#" item="c">

    <cfcookie name="#c#" expires="now">

</cfloop> --->

ColdFusion.Window.Destroy()

<cfinclude template="_header.cfm">

<h1>You have been logged out</h1>

<cfinclude template="_footer.cfm">

<cfabort>

However, when I try clicking the link the Browser is not closing and it is still redirecting to the OAM log off page. does anyone have suggestions on how to be closing the window from the link?

Eric Lommatsch

I just figured out what I needed to do on my own based on how I am doing this.

I modified the "Close Window" Link to that is calling a close.html when it it clicked

onclick="window.open('close.html', '_self')"

Then close.html is running this command

<script>window.close();</script>

This is giving me the behavior I am looking for.

I answered my question myself, I should have been more patient.

Eric Lommatsch

Views

118

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 24, 2019 0
Community Beginner ,
Jun 24, 2019

Copy link to clipboard

Copied

Actually I think I have just figured out a way to do what I want to do.  The only thing I don't like is that it is still prompting the user to ask whether they want to close the window or not.  If they are clicking on the link the way I have it setup, they have already said they want to close the window.  I know that generally windows will prompt if the code is closing the window, But in this case by making the link say close window I think the user should understand that they are closing the window.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 24, 2019 0
Community Beginner ,
Jun 24, 2019

Copy link to clipboard

Copied

I just figured out what I needed to do on my own based on how I am doing this.

I modified the "Close Window" Link to that is calling a close.html when it it clicked

onclick="window.open('close.html', '_self')"

Then close.html is running this command

<script>window.close();</script>

This is giving me the behavior I am looking for.

I answered my question myself, I should have been more patient.

Eric Lommatsch

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 24, 2019 0