Session Management of Non-CFM files

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Session Management of Non-CFM files

    I have a directory which contains cfm and NON-cfm files. The user has to login
    before accessing the site. I am using session variables to track
    authentication. However, most of the files are HTML. Is there a way to make
    sure the user has logged in before viewing the HTML files. Right now, once they
    login to the site via cfm files they could easily bookmark the html pages and
    still get right in without loggin in? I tried sandbox security but that didn't
    help either.

    TBJ Guest

  2. Similar Questions and Discussions

    1. Session management in MX
      We are going to move 2 applications from 2 separate 4.5 servers to 1 MX server and both applications use pretty much the same code for session...
    2. session management logout
      I am trying to get some help with the cfheader expires, pragma and cache - control. As I understand, the meaning of these tags is to keep users...
    3. Session Management Logout...
      Try changing the Expires header to an RFC 1123 date format. According to the RFC spec, it requires the following format: Thu, 01 Dec 1994 16:00:00...
    4. Session Management Logout...
      I tried this because I am having the same problem and I can still use the back button on my browser without being prompted for a user name and...
    5. Session Management
      Hello, We've reviewing the CGI::Session and Apache::Session modules, and both seem to do pretty much the same thing. Is one better then the other,...
  3. #2

    Default Re: Session Management of Non-CFM files

    Usually you
    [url]http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=7&thread[/url]
    id=453031&arctab=arc

    But with HTML files, you can just create a CFM page with session checking at
    the top, then <cfinclude> the HTML file if the session is active. All they'll
    see is getPage.cfm?fileID=123.

    cf_menace Guest

  4. #3

    Default Re: Session Management of Non-CFM files

    I think cf_menace's suggestion is a good idea. Ideally, you could move all of
    your HTML files under the web root and just cfinclude them from a cfml
    template. However, I believe you could also have coldfusion handle HTML files.
    By default, ColdFusion is just handling CFM, CFC, etc files and the webserver
    is handling JPGs, HTML, etc. By allowing CF to handle HTML files, it still
    executes the Application.cfm and executes your authentication code. Not sure
    how to do it in MX 6.1, but in CF 5 with Apache, you just change this config
    line AddHandler type-coldfusion cfm txt to AddHandler type-coldfusion cfm
    txt htm html This is all off the top of my head, so you might have to tinker
    around a bit to get your desired results, but I think the idea works.

    Mike Greider Guest

  5. #4

    Default Re: Session Management of Non-CFM files

    You should be able to change the settings in IIS for .HTM files to use the same parser as CFM files. I think that is what you want to do.
    sdwebguy99 Guest

  6. #5

    Default Re: Session Management of Non-CFM files

    Thanks for the suggestions. I will try them out.
    TBJ Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139