Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically logout



At 17:15 +0100 26/1/05, Etienne Henri wrote:
on 1/26/05 6:46 AM, Etienne Henri wrote:

Is there any recommended way to force a user to log out?

What are you trying to accomplish? Do you want to secure the machine, like picking Login Window... from the fast user switching menu? Or do you really want all the user's applications to die, potentially losing unsaved work? Or is it something else?

Actually, I'm writing a computer usage monitoring tool.
After a specified amount of time, the user should not use the computer anymore. The idea was to send a warning to the user one minute before the session is closed, then close it.
The user should not be able to cancel the operation, that's why data loss is not really a issue here.

There may be another saver way to do handle this. assuming you want to give a user relatively full access (i.e. not use kiosk mode) you could put up a screen covering overlay window and thus effectively block all further input from the user. You can then give the user a last chance to save work (temporarily withdraw the overlay window) and then put it back on if the user has still not saved and thus blocked logout. Just a very different kind solution to your problem that does not risk the user saving something if they ignored the first warning.


david.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Programmatically logout (From: Marc Epard <email@hidden>)
 >Re: Programmatically logout (From: Etienne Henri <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.