Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6661813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:19:27+00:00 2026-05-26T02:19:27+00:00

Yeah, this ought to be fun. I’m working on a site that was built

  • 0

Yeah, this ought to be fun.

I’m working on a site that was built in Fusebox 5.5 and uses an iFrame. I was recently tasked with converting the site to Application.cfc and setting cookies we’re using for google indexing on the site to HTTPonly as described here: http://www.petefreitag.com/item/764.cfm. The application is running on CF8.

The problem I’m running into is after a user logs into the site, the session data is set after the login process then a fuse is triggered to load the home page which contains a ‘frame-buster’ function to break the site out of the inner iframe for login and load the main page. When this executes, IE drops the session and as the rest of the page loads, another check occurs that discovers the session is missing and forces a redirect back to the home page. Each javascript redirect is creating a new session when used in IE. This issue is not occuring in Firefox or Chrome.

This is the frame-buster function, triggered as an onLoad in the body tag:

    function changeParentLocation() 
{
    if (top != self) {
        self.location.href = <cfoutput>"#Application.rootdir#"</cfoutput>;
        top.location.replace(self.location.href);
    }
}

This is the onSessionStart function:

<cffunction name='onSessionStart' access='public' returntype='void' output='false'>
    <cfheader name="P3P" value="CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'" />
    <cfheader name="Set-Cookie" value="CFTOKEN=#session.CFTOKEN#;path=.my.sites.subdomain/;HTTPOnly">
    <cfheader name="Set-Cookie" value="CFID=#session.CFID#;path=.my.sites.subdomain/;HTTPOnly">

    <!---<cfcookie name="CFTOKEN" domain=".my.sites.subdomain" value="#Session.CFTOKEN#" />
    <cfcookie name="CFID" domain=".my.sites.subdomain" value="#Session.CFID#" />--->
</cffunction>

If I comment out the HTTPOnly cookies and use the CFCookie code that’s currently commented out instead, IE does not attempt to create multiple sessions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:19:27+00:00Added an answer on May 26, 2026 at 2:19 am

    This does not occur if you properly set your coldfusion application up to have setClientCookies to be false. It must actually be a boolean false, and not a text value that would otherwise translate to false. In other words:

    <cfscript>
        this.name = applicationname;
        this.sessionmanagement = true;
        this.sessiontimeout = '#CreateTimeSpan(0,12,0,0)#';
        this.clientmanagement = true;
        this.setClientCookies = false;
        FUSEBOX_APPLICATION_PATH = '';
    </cfscript>
    

    Works. But:

    <cfscript>
        this.name = applicationname;
        this.sessionmanagement = 'true';
        this.sessiontimeout = '#CreateTimeSpan(0,12,0,0)#';
        this.clientmanagement = 'true';
        this.setClientCookies = 'false';
        this.specChar = '[!|@|##|$|%|^|&|*|<|>|?|\|/|[|]|{|}|=|~|`|(|)]';
        FUSEBOX_APPLICATION_PATH = '';
    </cfscript>
    

    Does not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Yeah, sounds silly but I'm a designers and the site I'm working on is
Hello yeah I'm asking this question a second time, sorry about that but I
I have an iframe with designMode=on (Yeah - I know this is bad thing)
Yeah this works in FF and Chrome, but for some reason wont work in
Yeah, its a bit on this side of pointless, but I was wondering... I've
So yeah, I'm a Java guy in this crazy iPhone world. When it comes
So yeah, like I said, I've spent a few hours trying to fix this
I recently started with WCF ( yeah I know I am behind :-) ).
I have a very large list Suppose I do that (yeah, I know the
Yeah, there's this cool myLabel.adjustsFontSizeToFitWidth = YES; property. But as soon as the label

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.