Re: Identifying unique login sessions
Re: Identifying unique login sessions
- Subject: Re: Identifying unique login sessions
- From: Frank Midgley <email@hidden>
- Date: Mon, 17 Nov 2003 11:32:04 -0600
On Nov 15, 2003, at 10:42PM, Shaun Wexler wrote:
Where is the best place to find appropriate data to generate a UID
string to identify the current login session? I need a tool to pipe
fd2 to the same text file during unique login sessions, creating a new
file each time a user logs in...
See "Getting Login Session Information" in:
http://developer.apple.com/documentation/MacOSX/Conceptual/
BPMultipleUsers/Concepts/FastUserSwitching.html
You basically need to call SessionGetInfo(). Not sure when this API
was introduced...
-Frank
------------------------------------
Frank M. Midgley
email@hidden
http://homepage.mac.com/knarf/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.