CFLogin and Application Names

If you try to use roles-based security under an application with a name that contains a space, you will get the following error:

The string "COOKIE.CFAUTHORIZATION_Testnew 2" is not a valid ColdFusion variable name.

The fix, of course, is to not use an application name with a space in it, but since Session variables work fine under this name, it may not be so obvious.

Archived Comments

Comment 1 by JD posted on 3/29/2005 at 12:38 AM

This error was terrible to debug. Thanks fo the post.

Comment 2 by dillon posted on 7/14/2011 at 11:25 PM

thanks 8 years later