Skip to main content
Participant
June 11, 2009
Question

Help with Coldfusion 5 login page

  • June 11, 2009
  • 1 reply
  • 1063 views

Hi

I want to setup a login page for my company website. This is running in Coldfusion version 5(I know its very old version). I never worked with Coldfusion before. Is there any setting in Control panel that we can require user to login to view any of our contents? or do we have edit all the pages and redirect to a login page if thats a not registered user? Please advice me.

I cant upgrade this server to new version,because this project contract is finishing end of this year.

Thanks

Ananth

    This topic has been closed for replies.

    1 reply

    ilssac
    Inspiring
    June 11, 2009

    You want to search up the "Application.cfm" file.

    In ColdFusion this file is automatically included at the beginning of all .cfm files requested from the same directory or any sub-directroy that does not have another Application.cfm file.  It is a common place to put login logic and other code that needs to be executed with every ColdFusion request.

    You will also want to know about the <cfapplication ...> tag that is used to name an application and provide access to applicaiton and session state scopes so that a login state can be maintained from request to request.

    A great resource would be the ColdFusion documentation that has entire chapters compete with sample code on how to set up web site authentication:

    Using the Application Framework

    Application Security

    http://www.adobe.com/livedocs/coldfusion/5.0/

    Participant
    June 11, 2009

    Thanks Ian Skinner  for your help. I'll try that. Is this only require login for cfm files or all files like pdf, html. Because I have to restric the whole root folder maybe.

    I have an other question. I dont see this Advanced security link in the control panel(see the doc here). Is that Im missing something?.

    ilssac
    Inspiring
    June 11, 2009

    By default, using a ColdFusion application framework authentication can only protect ColdFusion request.  I.E .cfm files etc.

    It is possible to confiugre a web server to pass other types of request through ColdFusion, but the better layer to handle all http reqeusts is the http web server.  All major flavors of web servers and built in functionality to enforce user autentication.  Their documentaiton is full of the details.

    P.S. I do not know what you are not seeing that security option in your admin.  It is possible that it was a version specific functionality.  I don't recall what flavors CF5 came in, but in the current versions ColdFusion comes in either "Standard" or "Enterprise" and there are definatly features that are only in the "Enterprise" editions.