<!--
{
  "documentType" : "article",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/window-server-session-properties",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Window Server Session Properties"
}
-->

# Window Server Session Properties

The keys for the standard properties in a window server session dictionary.

## Discussion

To learn how to use these keys to access the values in a session dictionary, see <doc://com.apple.documentation/documentation/CoreFoundation/CFDictionary>.

## Topics

### Constants

[`var kCGSessionUserIDKey: String`](/documentation/CoreGraphics/kCGSessionUserIDKey)

A `CFNumber` 32-bit unsigned integer value that encodes a user ID for the session’s current user.

[`var kCGSessionUserNameKey: String`](/documentation/CoreGraphics/kCGSessionUserNameKey)

A `CFString` value that encodes the session’s short user name as set by the login operation.

[`var kCGSessionConsoleSetKey: String`](/documentation/CoreGraphics/kCGSessionConsoleSetKey)

A `CFNumber` 32-bit unsigned integer value that represents a set of hardware composing a console.

[`var kCGSessionOnConsoleKey: String`](/documentation/CoreGraphics/kCGSessionOnConsoleKey)

A `CFBoolean` value indicating whether the session is on a console.

[`var kCGSessionLoginDoneKey: String`](/documentation/CoreGraphics/kCGSessionLoginDoneKey)

A `CFBoolean` value indicating whether the login operation has been done.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)