Page 1 of 1

Admin logout/session end

Posted: Sat Nov 11, 2023 12:34 am
by Joe1234
I'm registering admin activity, I see how I can log the time if someone logs out, but how can I register the time when the session ends/browser closes or something?

Re: Admin logout/session end

Posted: Sat Nov 11, 2023 5:39 am
by ADD Creative
For browser close. One way might be to use the beforeunload event to send a message to the server. https://developer.mozilla.org/en-US/doc ... load_event

End of session would be a lot harder.