Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Date Date
Qty:
Subtotal
Promotions
Estimated Shipping
VAT
Calculated at checkout
Total
Checkout
ColdFusion Help / 

ColdFusion login page always fails or produces an error

Adobe Community Help


Products Affected

  • ColdFusion

Contact support

 
By clicking Submit, you accept the Adobe Terms of Use.
 

Issue

When working on a ColdFusion site and using Dreamweaver's Log In User server behavior, you may experience one of the following problems or errors with your login page:

Whenever you try to use the login page in a web browser, login always fails, even for username/password combinations that are legitimate.

The error below occurs when attempting to use the login page in a web browser:

Error Occurred While Processing Request

Error Diagnostic Information

An error occurred while evaluating the expression:

// username and password match - this is a valid user

Session.MM_Username = MM_valUsername;

if (MM_fldUserAuthorization IS NOT "") {

Session.MM_UserAuthorization = MM_rsUser[MM_fldUserAuthorization][1];

} else {

Session.MM_UserAuthorization = "";

}

if (IsDefined("accessdenied") AND false) {

MM_redirectLoginSuccess = Evaluate("accessdenied");

}

Error near line 19, column 7.

------------------------------------------------

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 processing an element with a general identifier of (CFSCRIPT), occupying document position (17:5) to (17:14).

The error below occurs when attempting to use the login page in a web browser:

Error Occurred While Processing Request

Error Diagnostic Information

Cannot lock session scope

CFLock cannot be used to lock the application or session shared scopes without these scopes being established through the use of the CFApplication tag. You must use CFApplication and specify an application name to use the application scope. If you want to use the session scope you need to enable session management as well. Application and/or Session variables must also be enabled in the ColdFusion Administrator.

The error occurred while processing an element with a general identifier of (CFLOCK), occupying document position (10:7) to (10:60).

The variant of the problem that occurs depends on which version of ColdFusion server you are using and whether you have selected Dreamweaver MX or UltraDev 4 code model for the login page.

To the top

Reason

The problems and errors above appear when attempting to use session variables in ColdFusion pages without enabling session variables in the Application.cfm file. These session variable errors can occur with pages that were created with Dreamweaver's Log In User server behavior, because the Log In User server behavior utilizes session variables.

TheApplication.cfm file is not automatically created by Dreamweaver when implementing the Log In User server behavior because an Application.cfm file may already exist for the web application. If Dreamweaver automatically created an Application.cfm file, then any user-created Application.cfm file (which could contain numerous settings for application and client scope variables) would be replaced by a Dreamweaver-generated Application.cfm file containing only session scope variables. To avoid the possibility of overwriting an existing file and deleting information, theApplication.cfm file is not automatically created by Dreamweaver.

To the top

Solution

In order to use Dreamweaver's Log In User server behavior, you must enable session management for the application by doing the following things:

Create a file called Application.cfm, if it does not already exist. ColdFusion looks for this file first in the same directory as the calling page, then travels up the directory tree until it finds an Application.cfm file.

Note:On UNIX systems, filenames are case sensitive. The Application.cfm file name needs to spelled with a capital A.

At minimum, the following code should be placed in the Application.cfm file. If this page already exists, make sure that "sessionmanagement" is set to"yes". Please refer to the ColdFusion documentation for otherApplication.cfm settings.

<CFAPPLICATION NAME="Name" SESSIONMANAGEMENT="Yes" >

Upload the Application.cfm file to the remote server.

Additional information

For more details on using session variables, please see How to create a session variable (TechNote 16563).

For tips relating to passing form data from a page with the Log In User server behavior, please refer to: How to pass a user name from a login page (TechNote 15398).





Keywords: tn_16564

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement