Sure,

For the record, it's not any one method, I've tried it with numerous
functions and the example below was just the simplest unused method in this
CFC

    <cffunction name="Logout_User" access="remote" output="true"
returntype="any">

        <cfset var foo = "">

        <!--- Check if user is stored in client --->
        <cfif StructKeyExists(client, "userID")>
            <cfset delete = DeleteClientVariable("userID")>
            <cfset delete = DeleteClientVariable("userAgentUUID")>
            <cfset delete = DeleteClientVariable("userAgentInstanceUUID")>
        </cfif>

        <cfreturn foo/>
    </cffunction>


If I remove the foo from the cfreturn - then CF passes the set-cookie
request back in the repnse header - it's it's there, even if, as in the
example, it's blank - it still won't give me the set-cookie

Here is my jQuery as well

    function getGarbageCFC(){
        $.get('/mobile/com/UserManager.cfc?method=Logout_User',
function(data) {
            //console.log(data);
        });

    }

If I put a literal CFCOOKIE tag into the method, it does send it in the
headers - but only the cookie I set manually - not the other CF cookies



This is my FF FireBux header dump on the reponse when I don't have foo in
the cfreturn

ConnectionKeep-AliveContent-Typetext/html; charset=UTF-8DateFri, 13 Jul
2012 20:17:43 GMTKeep-Alivetimeout=5, max=100ServerServer/4Set-Cookie
CFGLOBALS=urltoken%3DCFID%23%3D195351%26CFTOKEN%23%3De9a3908e9cb4675%2D0E71EA23%2D9137%2D949F%2D2834E7E6CDA837C5
%23lastvisit%3D%7Bts%20%272012%2D07%2D13%2013%3A17%3A44%27%7D%23timecreated%3D%7Bts%20%272012%2D07%2D13
%2010%3A45%3A13%27%7D%23hitcount%3D27%23cftoken%3De9a3908e9cb4675%2D0E71EA23%2D9137%2D949F%2D2834E7E6CDA837C5%23cfid%3D195351%23;expires=Sun,
06-Jul-2042 20:17:44 GMT;path=/

This is the result from the exact same request when I do have foo in the
cfreturn

ConnectionKeep-AliveContent-Typetext/html; charset=UTF-8DateFri, 13 Jul
2012 18:56:57 GMTKeep-Alivetimeout=5,
max=100ServerServer/4Set-CookieALAN=Awesome;expires=Sun,
06-Jul-2042 18:56:57 GMT;path=/Transfer-Encodingchunked

Thoughts?

-- 
Alan Rother
Manager, Phoenix Cold Fusion User Group, www.AZCFUG.org
Twitter: @AlanRother


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351887
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to