AuthorizationManager – FLastAuthorized

Home Forums kbmMW AuthorizationManager – FLastAuthorized

This topic contains 1 reply, has 2 voices, and was last updated by  kimbomadsen 2 weeks ago.

  • Author
    Posts
  • #54085

    zoran
    Participant

    Hi

    I would like to know when any of my clients last accessed any service defined in the server. FLastAuthorized is correctly updated with last access timestamp.

    Problem is when new client logs in or logs out, FLastAuthorized for all clients is set to the current timestamp.

    Is there a way not to update FLastAuthorized for other (already logged in) clients?

    I suppose I can add timestamp field in TkbmMWAuthorizationLogin class and update it manually, but is there more elegant (and easier) solution?

    Tnx.

    Zoran

  • #54089

    kimbomadsen
    Keymaster

    Hi,

    Im not sure the right place is the TkbmMWAuthorizationLogin class, instead I would put an eventhandler in the OnAuthorize event of the authorization manager, where you then maintain a map (dictionary) of login+’_’+resourcename and a timestamp.

     

You must be logged in to reply to this topic.