chickadee » macosx » session-info

session-infoprocedure

Returns a 10 element vector:

SESSION-ID
The security session identifier number.
IS-ROOT
A root session?
HAS-GRAPHICS
Has graphics access?
HAS-TTY
Has tty?
IS-REMOTE
Is a remote session?
WAS-INITIALIZED
Initialized? (see note below)
SHORT-USER-NAME
Short user name.
USER-ID
User identification number.
CONSOLE-SET
Console hardware number.
LOGIN-COMPLETED
Login operations complete?
IS-USER-ACTIVE
On console?

The OS API behind WAS-INITIALIZED is unsupported in MacOS 10.7 so to indicate the value is (void).