Skip to main content

lee

Member since Mar 20, 2009

Recent Blog Comments By lee

  • ColdFusion Session Management And Asynchronous Page Requests

    Posted on Mar 24, 2009 at 9:08 AM

    @Ben, I think you are right that it must be locked. I was thrown off because Chrome seems to queue up the requests. OnSessionStart is single threaded, but only get's called once if you have cookies set, because like you said in the beginning "ColdFusion creates the SESSION before it calls the OnS... read more »

  • The Same CFID-CFTOKEN Values Are Used Across ColdFusion Session Timeouts

    Posted on Mar 24, 2009 at 9:06 AM

    You can also use cfcookie to manually set the cookies to expire immediately. That way when the user closes the browser the cookies are gone.... read more »

  • ColdFusion Session Management And Asynchronous Page Requests

    Posted on Mar 20, 2009 at 1:31 PM

    And thanks for your blog. Every time I have a cf question and "Google it" your page comes up.. usually with something relevant and helpful. Thanks a lot!... read more »

  • ColdFusion Session Management And Asynchronous Page Requests

    Posted on Mar 20, 2009 at 1:19 PM

    @Ben, You are right that chrome never fails. Hadn't noticed that before. It's almost like chrome waits for the first frame to load before requesting the second, but it still sends both requests without the cookies on the first shot. In IE if you clear the cookies and restart, the frame requests ... read more »

  • ColdFusion Session Management And Asynchronous Page Requests

    Posted on Mar 20, 2009 at 12:48 PM

    Nope, at least that's not what I have seen. If you have cfid, cftoken cookies then cf uses those even if your session has timed out. Same cfid, and same cftoken forever or until you clear your cookies.... read more »

  • ColdFusion Session Management And Asynchronous Page Requests

    Posted on Mar 20, 2009 at 12:37 PM

    I think cookies are the same for all applications on the same server, so you have to be sure those browsers never hit a cf page on your server to get a cookie. I cleared cookies in IE and get the same results as chrome. Both frames load ok after the pause and have different cfid/cftoken values - ... read more »

  • ColdFusion Session Management And Asynchronous Page Requests

    Posted on Mar 20, 2009 at 11:41 AM

    @MrBuzzy, By default cftoken and cfid are persistent cookies assigned on the return of the first request to the server. They don't expire so even if you close and reopen the browser they are still there. The server should run the onSessionEnd after 20 seconds, but the cookies will remain.... read more »

  • ColdFusion Session Management And Asynchronous Page Requests

    Posted on Mar 20, 2009 at 10:47 AM

    I think you may be starting out with your session already set because you already have the cftoken and cfid cookies. If the server session has timed out then onSessionStart will only be called by the first request. If you start without your cookies set you will see something different. Open up ch... read more »

  • ColdFusion Session Management And Asynchronous Page Requests

    Posted on Mar 20, 2009 at 10:25 AM

    I ran a test myself and I don't think you have to use the lock in the onSessionStart for this to work. It is locked by default as the docs specify. However it is not single threaded so other requests will run, but only the first request calls the onSessionStart. Curious though if the first reques... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel