• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: logout and auto-login
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: logout and auto-login


  • Subject: Re: logout and auto-login
  • From: Matt Rollefson <email@hidden>
  • Date: Mon, 10 Dec 2001 09:29:30 -0800

There's nothing stopping Cocoa programmers from #include'ing the appropriate Carbon-world headers and using the Apple Event functions directly. You are absolutely allowed to use this feature of the system, and in fact encouraged to do so. On the documentation side, we're still trying to get the Cocoa documentation itself more in order, before tackling some of these integration problems. We are definitely aware that some exist, however, and they're on the list of things we'd like to address in the short to medium term.

As to whether this is an appropriate solution to the original question, I sort of doubt it, as the logout Apple Event allows the user to cancel the logout. I believe the original question was for a way to "log the user out, gracefully but by force" or some such.

Matt Rollefson (Rollie)
Manager: Cocoa & Developer Tools
Technical Publications
Apple Computer, Inc.


On Monday, December 10, 2001, at 02:26 AM, Stiphane Sudre wrote:

On Sunday, December 9, 2001, at 12:51 PM, Jake wrote:

It is a security application. If it detects an anomaly, it is to terminate
the current session and logout the user "gracefully by force". It appears
that killing either the "loginwindow" or "WindowServer" does the job. But
I can't seem to be able to get the pid of those process from within my
program without resorting to a shell scripts: getpgrp() doesn't yet exist
in OSX, and I can't walk the process table because of permission issues.
(ps is suid). Any suggestions?

IMHO, the appropriate solution would be to send an AppleEvent to LoginWindow.app to logout the user.

Yet I'm a bit dubitative to ever see a description on how to do this, since it's the same issue that the one with the restart and shutdown Apple events.

It looks like this is a feature that we are not allowed to use.
_______________________________________________
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.


  • Follow-Ups:
    • Re: logout and auto-login
      • From: Finlay Dobbie <email@hidden>
    • Re: logout and auto-login
      • From: Stéphane Sudre <email@hidden>
References: 
 >Re: logout and auto-login (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: submenu depth
  • Next by Date: Re: NOT Drag and Drop onto the Desktop
  • Previous by thread: Re: logout and auto-login
  • Next by thread: Re: logout and auto-login
  • Index(es):
    • Date
    • Thread