Instance Property

sessionDescription

An app-defined descriptive label for the session.

Declaration

@property(copy) NSString *sessionDescription;

Discussion

This property contains a human-readable string that you can use for debugging purposes. This value may be nil and defaults to nil. The value is ignored by the session.

See Also

Managing the Session

- finishTasksAndInvalidate

Invalidates the session, allowing any outstanding tasks to finish.

- flushWithCompletionHandler:

Flushes cookies and credentials to disk, clears transient caches, and ensures that future requests occur on a new TCP connection.

- getTasksWithCompletionHandler:

Asynchronously calls a completion callback with all data, upload, and download tasks in a session.

- getAllTasksWithCompletionHandler:

Asynchronously calls a completion callback with all tasks in a session

- invalidateAndCancel

Cancels all outstanding tasks and then invalidates the session.

- resetWithCompletionHandler:

Empties all cookies, caches and credential stores, removes disk files, flushes in-progress downloads to disk, and ensures that future requests occur on a new socket.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software