ColdFusion
  Home arrow ColdFusion arrow How to Create a Simple Cold Fusion Login
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
COLDFUSION

How to Create a Simple Cold Fusion Login
By: Aaron Schaap
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 42
    2004-02-25

    Table of Contents:
  • How to Create a Simple Cold Fusion Login
  • Example With Login Check

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    How to Create a Simple Cold Fusion Login


    (Page 1 of 2 )

    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.

    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

    More ColdFusion Articles
    More By Aaron Schaap


     

    COLDFUSION ARTICLES

    - 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...
    - My First Application on ColdFusion MX Server







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway