Skip to main content
February 26, 2010
Question

help with client id

  • February 26, 2010
  • 1 reply
  • 719 views

I'm trying to tie together information from the requesturl passed on the netconnection to events in the log file.  I tried to do this by emitting a trace message in my serverside action script with client.id and then hoping that I could match it to the field c-client-id in the access log.  Unfortunately the two don't seem to be the same.  For example a given session, my client.id is DCAoEU7K and my corresponding c-client-id in the access log is 5419894433271333700.  Does anyone have any clue on how to do this?  Thanks.

--dan aronson

dan@247fps.com

    This topic has been closed for replies.

    1 reply

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 26, 2010

    Hi,

    access.log displays the client id in integer. So you have to use c++ to convert the client ID to char like what you get in action script.

    Regards,

    Janaki L

    February 26, 2010

    uh, I don't see it, I'm probably being dense.  Can you show code that converts?

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 26, 2010

    Hi,

    Try this...

    // The client id that you got from access.log > 'c-client-id' field

    INT64 myClientID = 4702111235364176239;  char new_clientID[9];
    memset(new_clientID, 0, 9);
    memcpy(new_clientID, &myClientID, sizeof(myClientID));    

    //You get your output at 'new_clientID'

    Regards,

    Janaki L