I guess you use onLastWindowClose trigger for the log, but I don't see any problem.
How do you log it?
OnFirstWindowOpen I set login and logoff times using Get ( CurrentHostTimeStamp ) (the reason I set logoff at login time as well is related to a log report need)
On OnLastWindowClose I run a local script that calls another script (I tried both to wait and not wait for completion). This called script then executes Get ( CurrentHostTimeStamp ) and updates the log table. It's working from Windows but can't get data for iPad, works intermittently with MAC and never works from Webdirect. I tried Webdirect myself, login off step by step, or just closing the browser, with same results.
There is no reason that work on Windows but fail on Mac, so your script may have branching on platform and there is the problem.
You seems using PSOS, but it is not need for using Get ( CurrentHostTimeStamp ).
Did you confirm compatibility on script editor?
Sorry for the "confusion".
I was alternatively running "Perform Script on Server" because some users
where closing the browser without logging out.
If the script is run at the user and the user logs out it works just fine
without "Perform Script on Server". I've set the compatibility to Webdirect.
So I guess the question is, are there ways to record a logout timestamp
when the user closes the browser without logging out?
The suggestion I had was to run an "alert" time-script asking confirmation
periodically, so that should the user close the browser the script wouldn't
get confirmation at the end of the period and timestamp.
Sorry again for the misunderstanding,