I ran into the same problem with an application a while back. I found that
changing

 <CFSET SESSION.datasource = "Webacctg">

to

<CFPARAM name="SESSION.datasource" default="Webacctg">

eliminated the error and properly set the variable.

Scott


Scott Brader
USAV Group
5485 South Westridge Drive
PO Box 510620
New Berlin, WI 53151-0620
Phone: 262.814.2000
Fax: 262.814.2006

Amateurs Practice Until They Get It Right,
Experts Practice Until They Can't Get It Wrong

Any opinions expressed herein are mine and are not representative of USAV
Communications Group.

-----Original Message-----
From: c talk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 08, 2000 10:39
To: cf-talk
Subject: Session Management Errors


Hi

I have an Application.cfm file with this code:

<CFAPPLICATION NAME="corptech" SESSIONMANAGEMENT="Yes" SESSIONTIMEOUT="30">

<!--- This SESSION.var is referenced by all queries using Accounting tables
coded by JBM after 08.08.2000 --->
 <CFSET SESSION.datasource = "Webacctg">


That generates the following error:

Attempt to access a Session variable when session management is not enabled.
Use the CFAPPLICATION tag to enable session
 management.

 Note: This feature may have been disabled by the site administrator.

 The error occurred while evaluating the expression:

  SESSION.datasource = "Webacctg"

 The error occurred while processing an element with a general identifier of
(CFSET), occupying document position (18:2) to (18:40)
 in the template file C:\Inetpub\wwwroot\accounting\Application.cfm

 The specific sequence of files included or processed is:
 C:\INETPUB\WWWROOT\ACCOUNTING\APPLICATION.CFM

* * * * *

When I comment the <CFSET> the page works correctly.

Also, where would I enable Session Management if it was disabled by the
Administrator?

Thanks in advance,

* john *

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to