SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,223
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    front name of cfid

    Code:
    <cfoutput>
    
    #cfid#
    
    </cfoutput>
    The code above outputs cfid. it works fine.

    I like to know the front name of cfid.

    The following two codes cause errors. but it will show what I want.

    Code:
    code1
    
    <cfoutput>
    #variables.cfid#
    </cfoutput>
    
    
    code2
    
    <cfoutput>
    #session.cfid#
    </cfoutput>
    If cfid is not variables or session, what is it?

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,220
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    the "front part" is called scope

    i'm pretty sure that cfid is in session scope
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,223
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by r937
    the "front part" is called scope
    Thank you for the term "scope."


    Quote Originally Posted by r937
    i'm pretty sure that cfid is in session scope


    Code:
    application.cfm
    
    
    <cfapplication  
        name='myApplication' 
        sessionmanagement='yes'
        sessiontimeout='#createTimeSpan(0,0,20,0)#'
        applicationtimeout='#createTimeSpan(0,0,20,0)#'>
    
    
    index.cfm
    
    <cfoutput>
    #session.cfid#<br>
    </cfoutput>
    If cfid is in session scope, why does the code above produce the error below.


    Code:
    result
    
    Element CFID is undefined in SESSION.

  4. #4
    SitePoint Addict cgriefer's Avatar
    Join Date
    Nov 2005
    Location
    San Ramon, CA
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do a <cfdump var="#session#"> and see what's in the scope.
    ------------------------------------------------------
    Charlie Griefer
    http://charlie.griefer.com


Bookmarks

Posting Permissions

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