On Aug 24, 2005, at 12:34 PM, Randy Jaynes wrote:
On Aug 24, 2005, at 12:00 PM, Bart Alcorn wrote:
My client's A4D site is really four sites (virtual hosting). They
are asking for a monitoring page, one that will allow them to see
who is using the sites in real time.
We are storing as a global the internal session id, so we know
from a global perspective which session belongs to which user.
Is there a way to access session values from outside the session?
i.e. something along the lines of "get session(key{session ID})"?
If not we'll just have to add the required info for monitoring to
a global collection, but if there is a way to access data already
in a session on a session by session basis it would save work
(and memory).
Thanks Randy, but I don't think this can be done on the web server
side alone. A case of not seeing the trees for the forest.
Using A4D GET SESSION DATA I can get what I need, but obviously I
have to amend the structure first.
` Method: WEB_GetSessionValue($SessionID;$Key)
C_LONGINT($SessionID;$1)
C_TEXT($Key;$2)
C_LONGINT($Found)
C_TEXT($0)
$SessionID:=$1
$Key:=$2
ARRAY TEXT($SessionKeys;0)
ARRAY TEXT($SessionTypes;0)
ARRAY TEXT($SessionValues;0)
A4D GET SESSION DATA ($SessionID;$SessionKeys;$SessionTypes;
$SessionValues)
$Found:=Find in array($SessionKeys;$Key)
$0:=$SessionValues{$Found}
--
Bart Alcorn AvantraNet, Inc.
Office: 678-580-3265
Mobile: 770-335-5518
AIM/iChat: AvantraNet
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/