Hi Alexander,
Thanks for the assist. I've already made it that far. What I need to do is
list only a couple of variables - not everything in the session scope.
I have userID, password, username, lastdatetime and other data in the
session scope. What I need to do is get the userid's of the current
sessions so I can do a query to show who's on, allow user to user messaging,
and other fun stuff :-)
I'm not sure there is any efficient way to do this. So, back to the
question:
Is there any way to retrieve a specific session variable (userID) across all
sessions within an application without having to loop through ALL session
variables (username, password, etc) for each user?
I can make it work by looping through everything, and if it's a 'userid',
add it to a list. I'd really like to not loop through everything.
----- Original Message -----
From: "Alexander Lamon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 27, 2000 3:00 PM
Subject: Re: display all session variables
> Jeff,
>
> Session and application variables and can be accessed using the Struct
> functions. To see all of the session variables for an application, you
> can do something like this:
>
> <cfoutput>
> <cfloop collection="#session#" item="variable">
> #variable# = #StructFind(session, "#variable#")# <br>
> </cfloop>
> </cfoutput>
> I use this kind of thing to see who's on a few of my sites and where
> they are.
>
>
>
> >I know I've seen this, but after two hours of searching, I'm giving up
:-)
> >
> >I want to do a "who's on" listing, and display all of the instances of
> >session.username that currently exist.
> >
> >Isn't there a way to get all of the session variables, not on a per user
> >basis, but for all users with active sessions?
> >
> >I have session.username and session.lastdatetime being set (among
others).
> >How can I list all of the instances of session.username and
> >session.lastdatetime?
> >
> >TIA!
> >
> >Jeff
> >
> >
>
>--------------------------------------------------------------------------
> >----
> >Archives: http://www.eGroups.com/list/cf-talk
> >To Unsubscribe visit
> >http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
or
> >send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> >the body.
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.