- This topic has 1 reply, 2 voices, and was last updated 6 years, 5 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
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
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.