Home arrow ColdFusion arrow How to Create a Simple Cold Fusion Login
COLDFUSION

How to Create a Simple Cold Fusion Login


Secure your Cold Fusion application from unauthorized users using tips and code from this article. Learn about the <CFIF> tag and other ways to secure your site. In the login page, the user is required to enter a login and password. This page sends a SQL Query to a database to see if the user is an authorized user. If the user is authenticated, the variable is set, and access is granted.

Author Info:
By: Aaron Schaap
Rating: 4 stars4 stars4 stars4 stars4 stars / 76
February 25, 2004
TABLE OF CONTENTS:
  1. · How to Create a Simple Cold Fusion Login
  2. · Example With Login Check

print this article
SEARCH DEVARTICLES

How to Create a Simple Cold Fusion Login
(Page 1 of 2 )

This article covers creating a Cold Fusion Application secured from unauthorized users. Adding a <CFIF> tag to check to see if a variable is defined does it. If the variable is not defined, then the user would be redirected to a login page.

In the login page, the user is required to enter a login and password.  This page sends a SQL Query to a database to see if the user is an authorized user. If the user is authenticated, the variable is set, and access is granted.

If the user is not authorized, a message is displayed and a link to the registration page is offered.

Application.cfm

The most common place to put the login checking is in the application.cfm page. This file defines the application-level settings and functions, such as the following:

  • Application name
  • Client, application, and session-variable management options
  • Page processing settings
  • Default variables
  • Login processing
  • Error handling


blog comments powered by Disqus
COLDFUSION ARTICLES

- Adobe ColdFusion Just Got More RAD
- How to Access a SQL Anywhere Database with C...
- CFXML: Probing XMLDOM in ColdFusion
- Creating a Web Service with ColdFusion: the ...
- CFAjax: What it is and How to Use it
- Querying SQL 2000 Server from ColdFusion
- Introduction to ColdFusion Markup Language, ...
- Introduction to ColdFusion Markup Language
- Databases and Dreamweaver MX 2004, concluded
- Databases and Dreamweaver MX 2004
- Welcome to Coldfusion MX 6.1, concluded
- Welcome to Coldfusion MX 6.1
- What You Must Know About ColdFusion Flow-Con...
- What You Must Know About Operators in ColdFu...
- Everything You Must Know About ColdFusion Va...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials