Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cflogout error

Contributor ,
May 23, 2016 May 23, 2016

Hello
I have a logout that doesn't seem to want to work for Coldfusion 10. I have a log in system for an admin area, I want to allow the user to log out of it and delete the session they are using. This is my code as well as the error it's giving me:

Code:

<cflogout>

<cfset StructDelete(session,"auth")>

<CFHEADER NAME="Refresh" VALUE="0; URL=index.cfm">

Error:

Cookie name "CFAUTHORIZATION_MYAPP" is a reserved token

I changed the name of the app to my app. What am I doing wrong here? I've tried a number of different ways to accomplish this log out.. They either don't delete the session with no errors, or I get this error.

Thank you

TOPICS
Advanced techniques
776
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 19, 2016 Jun 19, 2016
LATEST

To get ColdFusion to log the user out and delete the session, simply do the following. In Application.cfc or in the cfapplication tag in Application.cfm, set loginStorage="session". Remove the StructDelete line, as it is now unnecessary.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources