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

Session Management not working at all

Engaged ,
Sep 10, 2006 Sep 10, 2006

Copy link to clipboard

Copied

Hi,

I am trying to use Application.cfc as opposed to Application.cfm.

For some reason I get this error:

Before session variables can be used, the session state management system must be enabled using the CFAPPLICATION tag.

Session Management is turned on in my CF Administrator.

Here is part of the Application.cfc file

<cfcomponent>

<cfscript>
this.name = 'myAdmin';
this.applicationTimeout = createTimeSpan( 2, 0, 0, 0 );
this.clientManagement = false;
this.clientStorage = '';
this.loginStorage = 'session';
this.sessionManagement = 'yes';
this.sessionTimeout = createTimeSpan( 0, 0, 30, 0 );
this.setClientCookies = true;
this.setDomainCookies = true;
</cfscript>



</cfcomponent>

All the other functions (onApplicationStart, onSessionStart, etc, etc) are in my Application.cfc, I just didn't want to list them.
TOPICS
Advanced techniques

Views

253

Translate

Translate

Report

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
Explorer ,
Sep 16, 2006 Sep 16, 2006

Copy link to clipboard

Copied

get rid of the "this" at the beginning of your statements

Votes

Translate

Translate

Report

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
Engaged ,
Sep 16, 2006 Sep 16, 2006

Copy link to clipboard

Copied

LATEST
keep 'this', do not get rid of it.
just change
this.sessionManagement='yes'
to
this.sessionManagement=true

Votes

Translate

Translate

Report

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
Documentation