List all Current Session Variables

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default List all Current Session Variables

    Hi,

    Is it possible in CF 5 to list all session variables currently assigned on a
    web site.

    For instance, if I assign a sesson variable that is a list of item numbers and
    a session variable that is a list of quantities, can I display these two
    variables for ALL users on the site with these variables assigned?

    Thanks,
    Steve

    slanza Guest

  2. Similar Questions and Discussions

    1. #39833 [NEW]: Session variables overwritten by local variables (register_globals=off)
      From: sup1382 at accedo dot es Operating system: OpenBSD 3.9 PHP version: 5.2.0 PHP Bug Type: Session related Bug...
    2. #39447 [NEW]: Want to optionally handle apc_upload_progress variables using session variables
      From: krudtaa at yahoo dot com Operating system: All PHP version: 5.2.0 PHP Bug Type: Feature/Change Request Bug...
    3. Get A List of Current Sessions
      I am writing an application and I would like to be able to go to a page and get a list of every user that has a current session... Is this possible?...
    4. [PHP] How are variables called in current php?
      Wei Wang wrote: should be $REQUEST_METHOD == 'POST' why don't you just use the $_REQUEST array instead? -- http://www.radinks.com/upload...
    5. Session problem when setting session variables in files that are in different directories
      I am running PHP 4.3.0 on a WinXPpro machine and I recently got problem with sessions. What I am building is a loginsystem and I need to save...
  3. #2

    Default Re: List all Current Session Variables

    Session variables are a collection, so you could do something like the following:

    <CFOUTPUT>
    <CFLOOP COLLECTION="session" INDEX="i">
    #session#<BR>
    </CFLOOP>
    </CFOUTPUT>
    jdeline Guest

  4. #3

    Default Re: List all Current Session Variables

    or you could just <cfdump var="#SESSION#">
    DCS Admin Guest

  5. #4

    Default Re: List all Current Session Variables

    He wanted them for every session active on the machine, not just for debugging
    within a single session.

    I'm interested also. If possible, for me(since all my apps have a field
    called Session.CurrUser ), it would solve the old who's currently logged on
    problem without having to get into the typical application structure
    login/logout solution which I've never bothered to implement (too costly, too
    many applications).

    So basically the question is, any way to get a list of and sweep all Sessions
    on a machine, wherever they're hiding (Memory, Registry)?.

    If so, we could all easily parse out the App from left side of the common
    field, Session.SessionID, and be in business, knowing the fields for each of
    our Apps.

    JMGibson3 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