Post by Joe1234 » Sat Nov 11, 2023 12:34 am

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?

v3.0.3.8
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by ADD Creative » Sat Nov 11, 2023 5:39 am

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.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: Bing [Bot] and 33 guests