CJ Keist schrieb:
Is there any way to know how long a user session on a smart card has
been disconnected with SRSS 4.1?
No. But you could create one yourself.
1. Create a script that records the current time and disconnected state
in some per-session file (might just remove the file when connected)
2. At session start (from a /etc/dt/config/Xsession.d or xinitrc.d
script) start
utaction -i -c '/path/to/record-session-state connected' \
-d '/path/to/record-session-state disconnected' &
The you can use the stored time stamp to determine how long you have
been disconnected.
I would like to be able to free up
system resources by automatically terminating disconnected sessions
after some X number of days.
You can do that even more easily. Instead of the above, use something like:
utaction -i -t $timeoutsecs -d "kill $$" &
For kiosk mode sessions that feature is available as part of the
product. Internally it also uses utaction, but starts the process as
root, so that the kiosk user can't terminate it.
As others have said: if you really care about idle time (even for
connected sessions) then you should look at xautolock.
HTH
- Jörg
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users