AuthorizationManager – FLastAuthorized

Home Forums kbmMW AuthorizationManager – FLastAuthorized

  • This topic has 1 reply, 2 voices, and was last updated 9 months ago by kimbomadsen.
Viewing 1 reply thread
  • 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.

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.