Community Member Profile

David Boyer
Member since Jun 25, 2009

Recent Blog Comments By David Boyer

  • Explicitly Ending A ColdFusion Session

    Posted on Feb 17, 2010 at 3:59 AM

    @Sebastiaan, I don't think the session.setMaxInactiveInterval() will work for Railo. Might be worth checking but I did request other session related "hidden" stuff a while ago and they've said they might be looking into it. read more »

  • Explicitly Ending A ColdFusion Session

    Posted on Feb 12, 2010 at 10:55 AM

    Very information post. I agree with you about always being aware about the use of undocumented features. I think it's always a good idea to have alternatives ready in case Adobe take them away. As soon as the CF10 prerelease program starts, I'll be putting my case forward for making setMa... read more »

  • Clearing The Session Scope Does Not End Your ColdFusion Session

    Posted on Feb 11, 2010 at 4:43 PM

    @Jason, Glad you like it. It's just a little utility cfc for stats and information, but the little summary tool does come in handy. Plus the setMaxInactiveInterval is great. With CF8+ you can also read information from other sessions, it'd be easy enough to pull out a username from a ses... read more »

  • Clearing The Session Scope Does Not End Your ColdFusion Session

    Posted on Feb 11, 2010 at 11:28 AM

    @Ben, Now I have http://wp.me/py3ue-cu >:) Great fun but I can't think of a way to use this power for good...... read more »

  • Clearing The Session Scope Does Not End Your ColdFusion Session

    Posted on Feb 11, 2010 at 11:03 AM

    @Ben haven't released it yet, having fun with it first ;)... read more »

  • Clearing The Session Scope Does Not End Your ColdFusion Session

    Posted on Feb 11, 2010 at 10:56 AM

    @Ben, Just checked and .setMaxInactiveInterval(1) works quite well. I've just altered my cftracker riaforge project and added the ability to nuke any session. Great fun! Now to place it on the shared development server in work and watch the other developers scratch their heads when their... read more »

  • Clearing The Session Scope Does Not End Your ColdFusion Session

    Posted on Feb 11, 2010 at 10:25 AM

    Ben, I remember seeing some hidden functions that would expire sessions properly. http://jehiah.cz/archive/extended-operations-on-coldfusion-sessions Basically either session.setMaxInactiveInterval(1) or session.invalidate() Haven't tested in CF9 though but it works in CF7... read more »

  • ColdFusion GetPageContext() Massive Exploration

    Posted on Feb 11, 2010 at 3:43 AM

    @Ben, your crazy ;) No, you're right, the form field does hold the name of the TMP file path. But it's with the temporary file name as well, ending in .tmp. This is handy for checking the size of the uploaded file without touching cffile(action=upload) but not the file type itself. Somew... read more »

  • ColdFusion GetPageContext() Massive Exploration

    Posted on Feb 5, 2010 at 4:46 AM

    Oooo! I've been after file information without using cffile for ages. It's on my list to pester Adobe for in the next release. I know that CF8 handles uploads slightly differently and to help improve memory usage it doesn't hold the full POST request body in memory anymore (it's there in C... read more »

  • Thoroughly Document Your Use Of ColdFusion's CFHTMLHead Tag

    Posted on Oct 13, 2009 at 11:22 AM

    @Brad, Well spotted! I've been doing this in 7 but when I tested it on 8 I forgot to remove a try/catch I had added. I'll have a look at that and see if I can sort it out. ;)... read more »

  • Thoroughly Document Your Use Of ColdFusion's CFHTMLHead Tag

    Posted on Oct 8, 2009 at 4:16 AM

    I've managed to piece together the following code from various sources on the internet, allowing you to reset/clear or get the contents of the cfhtmlhead buffer. It works in ColdFusion only (no railo/bluedragon) and comes in quite handy if dealing with code using CFHtmlHead. read more »

  • Regular Expressions Make CSV Parsing In ColdFusion So Much Easier (And Faster)

    Posted on Oct 5, 2009 at 6:07 AM

    @Ben, Well for MS SQL Server 2000+ there is "BULK INSERT". To use it you'd have to validate the CSV file with ColdFusion first, copy it to a drive on the database server and then via CF just use the CFQuery tag to execute the bulk insert SQL. read more »

  • Thoroughly Document Your Use Of ColdFusion's CFHTMLHead Tag

    Posted on Sep 30, 2009 at 6:28 AM

    I've found what looks like the best way to reset/clear anything the CfHtmlHead tag has set. Model-Glue has the best version I've seen of this approach, it works around a bug in other versions and has Railo/BlueDragon support too. It's called "resetCfHtmlHead" and can be easily dropped into... read more »

  • Thoroughly Document Your Use Of ColdFusion's CFHTMLHead Tag

    Posted on Sep 29, 2009 at 11:06 AM

    It might also be a good idea to warn people that CfHtmlHead is immune to good old >cfcontent reset=true<. I had issues with some old code where I wanted to clear the output buffer and kept finding out it wasn't empty. I then finally hunted down the culprit CfHtmlHead.... read more »

  • Regular Expressions Make CSV Parsing In ColdFusion So Much Easier (And Faster)

    Posted on Sep 29, 2009 at 10:32 AM

    @Craig, You may want to have a look at my blog post on my battles with extremely large CSV file and memory leakage (all due to compnents, cfquery and cfqueryparam usage, not Ben's CSV parsing routine). http://bit.ly/ZknIx As far as validation is concerned, I have to take an all or not... read more »

  • ColdFusion GetPageContext() Massive Exploration

    Posted on Sep 25, 2009 at 4:46 AM

    I've just blogged about the idea in case you're really interested. Slowly expanding it's usage on my applications as well and it's looking good.... read more »

  • ColdFusion GetPageContext() Massive Exploration

    Posted on Sep 22, 2009 at 9:46 AM

    Thanks again Ben, one of your blog posts has come up trumps again! :) I had several old applications and wanted to save a chunk of bandwidth on them. After using a little information from here I came up with an onrequestend (.cfm in this case) that hashes the buffer Hash(GetPageContext().g... read more »

  • Regular Expressions Make CSV Parsing In ColdFusion So Much Easier (And Faster)

    Posted on Jun 25, 2009 at 5:18 AM

    Thanks Ben, This bit of code saved me a lot of work while battling with a 68000 line CSV file. I did modify it slightly as I was reading in the file line by line, so only needed the one dimensional array that would be replaced come the next line of the file. Certainly saved on memory usag... read more »

Member Account Kinky Solutions Shop