i will take a look ... see if there is something obvious ...

On 12/04/2012 04:32, Ivo Verbeek wrote:
Alan, I have more info. But it is not going to be pretty :-(

- I tried again, still same result. On Firefox + Chrome the cookie
still exists when I re-open browser on same page. On IE9 it does not.
- Tried via reverse proxy and also on Tomcat port 8080 directly. Same
result.
- I reconfigured Tomcat to run on port 80 instead, maybe it is the :
8080 to the URL. Nope, same result.
- Then maybe it is Tomcat, lets try Jetty. I downloaded latest build
of openBD desktop, installed it (Windows 7, 64 bit OS). Started it on
port 8080. Tested. Same result. Also with Jetty, expires="never"
results in end-of-session cookies on IE9. On FF + Chrome this is not a
problem.
- Tried running Jetty on port 80 instead. Same result.
- Tried another dev environment with Jetty on Debian Linux instead of
Windows. Same result.

It is reproducable, very consistent. Just install openBD desktop and
run this:

Application.cfc:

<cfcomponent>

        <cfset this.name = "cookietest">

        <cfset this.sessionManagement = "no">
        <cfset this.clientManagement = "no">
        <cfset this.setClientCookies = "no">

</cfcomponent>

index.cfm

<cfif isdefined("cookie.cookietest")>
        <h2>Already exists<cfoutput>#cookie.cookietest#</cfoutput></h2>
</cfif>

<h2>Cookie set</h2>
<!--- set cookie --->
<cfcookie name="cookietest" value="#now()#" secure="false"
httpOnly="true" expires="never">

I tried of course enabling sessionmanagement, setting client cookies,
playing around with path+domain attribute. I tried expires="100"
instead of "never". No results at all. In IE9 it doesn't seem to set
any other cookies then end-of-session.

Like I said, it works on Adobe CF 9. Don't give me a reason to switch
back :-)

What I will try also is to use client variables. I am sure that the
underlying mechanism for that needs never expiring cookies also. Will
try and report.

Also tried telnet. It stays in "connecting ....". Doesn't seem to be
able to connect. Disabled firewall and everything. Also openBD desktop
op port 80, it can't connect. Sorry.

Thanks again.

Ivo


--
online documentation: http://openbd.org/manual/
  google+ hints/tips: https://plus.google.com/115990347459711259462
    http://groups.google.com/group/openbd?hl=en

Reply via email to