Differences in Application name between CF 8 and Railo
This was an interesting little "gotcha" I stumbled on tonight. It seems that using a dash in the application name will throw an error in CF, but works fine in Railo.
So, the following cfset tag will work fine in Railo:
But, it will throw the following error in CF 8:
Detail: Valid variable names must start with a letter and can only contain letter, numbers, and underscores.
Message: The string COOKIE.CFAUTHORIZATION_MyApp-Admin is not a valid ColdFusion variable name.
Changing the dash to an underscore works fine in both CF 8 and Railo:
I thought this was odd, though, as I could have sworn that I've seen a CreateUUID() used to create an application name before, and all UUIDs have dashes.


There are no comments for this entry.
[Add Comment] [Subscribe to Comments]