Just fixed a small bug in my ColdFusion Kinky eCards Hayden Panettiere demo application. In the OnSessionStart(), I was clearing the session data. However, I was throwing the baby out with the bath water, so to speak, and was actually deleting the CFID and CFTOKEN as well. I am not sure if this was causing any bugs, per say, but I would definitely consider this to be a bad practice. Now, the new code, which can be downloaded from the Kinky eCards Project page has a modified OnSessionStart() event method that restores the CFID and CFTOKEN values after the SESSION scope is cleared:
Launch code in new window » Download code as text file »
Download Code Snippet ZIP File
Comments (2) | Post Comment | Ask Ben | Permalink | Print Page
Thanks for info. Excellent article...
Posted by Greg Fortelly on May 17, 2008 at 7:43 AM
Ben, great fix. Thanks a lot!
Posted by Good Joe on Jul 3, 2008 at 3:04 AM