Under some circumstances, an application may need two processes to run using the same login context. A process may acquire its login context in a form suitable for imparting to another process by calling sec_login_export_context( ). This call collects the login context from the local context cache and loads it into a buffer. Another process may then call sec_login_import_context( ) to unpack the buffer and create its own login context cache to store the imported context. Since the context has already been validated, the process that imports it may use it immediately. (The CDS clerk is an example of a context importer.)
These operations are strictly local; that is, the exporting and importing processes must be running on the same host. In addition, a process cannot export a private context.