Sorry I'm just getting around to responding Paul. I did comment out the cfscript lines and the error shows up whenever I try any of them. It only works when use cflogout only.
So, I changed my IsDefined to StructKeyExists, but that produces the same error. It seems related to the cookie struct and the error seems to be saying it cannot cast the boolean response of my if statement to the cookie struct type (just guessing here)? Any thoughts? On Thu, Feb 5, 2009 at 10:01 AM, Paul Bonfanti <[email protected]> wrote: > Could you try commenting out sections of that code to determine which > line of code is causing the problem? I'm guessing it's not the cflogout > causing the problem but the StructDelete or one of the StructUpdate calls. > > > > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Anthony Hixon, Jr. > *Sent:* Wednesday, February 04, 2009 9:25 AM > *To:* openbd > *Subject:* [OpenBD] cflogout Question > > > > I'm one step away from having one my apps migrated to OpenBD and I'm having > an issue with cflogout. > > When I click "logout" in my application, this URL is called: > http://webprod/policies/index.cfm?logout=true (It's obviously internal) > > Which calls the cflogout tag in my onRequest Start method: > > <cfif IsDefined("url.logout") AND url.logout EQ true> > <cflogout> > <cfscript> > IF (IsDefined("cookie.loginMessage")) { > StructDelete(cookie, "loginMessage"); > } > IF (IsDefined("cookie.admin")) { > StructUpdate(cookie, "admin", false); > } > IF (IsDefined("cookie.username")) { > StructUpdate(cookie, "username", GetAuthUser()); > } > </cfscript> > </cfif> > > And I get this output: > HTTP ERROR: 500 > > com.naryx.tagfusion.cfm.engine.cfBooleanData cannot be cast to > com.naryx.tagfusion.cfm.cookie.cfCookieData$cookieWrapper > > > > I'm hoping this is just some syntactical error on my part that Adobe let > slide and OpenBD does not. > > Thoughts? > > -- > Anthony Hixon, Jr. > Certified Advanced ColdFusion MX 7 Developer > Mobile: (706) 639-3617 > [email protected] > > > > > -- Anthony Hixon, Jr. Certified Advanced ColdFusion MX 7 Developer Mobile: (706) 639-3617 [email protected] --~--~---------~--~----~------------~-------~--~----~ Open BlueDragon Public Mailing List http://groups.google.com/group/openbd?hl=en official site @ http://www.openbluedragon.org/ !! save a network - trim replies before posting !! -~----------~----~----~----~------~----~------~--~---
