Logout prompt/ change log out dialog

Hi All,
I was wondering if somebody could help me. I would like to run a script when a user selects log out from the apple drop down to ask the user if they backed up their data before it allows them to log out.  I created a script that prompts you and then brings you to the logout screen but do not know how to get it to run, or something similar to run, when you select log out.  Obviously, I do not want it to run when the user has already logged out..
The other option I see that could work would be to change the message, "are you sure you want to quit all applications and log out now?" which I cannot figure out how to do.
Any help would be greatly appreciated
Thanks,
Marissa

By the way the script is:
tell application "Finder" to display dialog "Please Backup Your Data
There is a risk of data loss if the machine experiences a hardware failure or an accident occurs" buttons {"Log Out", "Cancel"} default button "Cancel" with icon stop
if button returned of result is "Log Out" then
          tell application "System Events"
  log out
          end tell
end if

Similar Messages

  • Log Out Behavior - Users appear to stay logged in

    I cannot get a user to logout using the Log Out User
    behavior. I created a restricted page which displays the user's
    name once logged in, however when the user logs out and a different
    user id is used, the restricted page returns the first user's id. I
    cannot get the first user cleared. Thought it might be cookies but
    not sure. I'm using DW CS4's built in behaviors (no hand coding),
    MySQL 5.1.11, and PHP 5.2.9-1. Any ideas

    David I'll try to clarify.
    I've built 1 test MySql database, and 3 test pages
    (login.php, login_failure.php, and authorized.php).
    database: 6 fields (recordID, userFirstName, userLastName,
    userID, userPW, userAccess). userAccess values were 1 and 0, now
    are admin and user. admin is the allowed value in this case.
    Records in MySql InnoDB:
    recordID: 1 (Primary Key)
    userFirstName: User1
    userLastName: User1 Last
    userID: user1 (Indexed)
    userPW: user
    userAccess: admin
    recordID: 2 (Primary Key)
    userFirstName: User2
    userLastName: User2 Last
    userID: user2 (Indexed)
    userPW: user
    userAccess: admin
    login.php: Has one behavior, Log In User with Restrict access
    based on User, password and access level which is derived from
    userAccess field in database. If successful, user goes to
    authorized.php, if not, user goes to login_failure.php.
    login_failure.php: No SB, simply presents user with message
    that they are not authorized for access and a link to return to
    login.php.
    authorized.php: 4 SBs. Restrict Access to Page(), Recordset
    (Recordset1), Dynamic Text (Recordset1.userFirstName), and Log Out
    User. This page allows userAccess value "admin" from database and
    presents user with text Welcome (Recordset1.userFirstName). There
    is also the Log Out User link to log out.
    Steps to recreate:
    Set both userIDs userAccess to "admin" to allow access to
    authorized.php
    Login to login.php using userID "user1" and password "user"
    Take me to authorized.php, with "Welcome User1" displayed
    Click Logout
    Login to login.php using userID "user2" and password "user"
    Take me to authorized.php, with "Welcome User1" displayed
    (note: supposed to be Welcome User2)
    Click Logout
    Change userAccess for userID "user1" to something other than
    "admin"
    Login to login.php using userID "user1" and password "user"
    Takes me to login_failure.php as expected
    Return to login.php via link
    Login to login.php using userID "user2" and password "user"
    (which is now the only auth user)
    Take me to authorized.php, with "Welcome User1" displayed
    (note: supposed to be Welcome User2)
    Click Logout
    The security part works as seen above. I just don't
    understand why the authorization.php page always shows the first
    record in the DB. That's why I was assuming that the Log Out User
    function was not working.
    Steve

  • Unprompted Log out occurring after 10.10.3 update

    I'm having a problem since updating to 10.10.3: Log out dialog pops up, after a few minutes of non-mouse input, asking "are you sure you want to log out", without being prompted. I have installed the 10.10.3 update and the supplemental. There are other anomalies with audio related apps. Pandora in Firefox the volume control will cut to 0 without my input, or the sound will just totally cut out.
    Thanks for your help.
    D

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Alternatively, see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Logged Out session can be accessed again After logout (DAD authentication)

    Hello,
    Please find the details of my problem below:
    SCENERIO:
    Current Authentication: No Authentication (USING DAD)
    Authorization: MYAUTH
    Frequency: Once Per Session
    declare
    lv_retval boolean;
    lv_srec pkg_myutil.r_sessionrectype;
    begin
    begin
    -- This is NOT Apex Session. I am checking the entry in a table to make sure user is logged in
    -- and the link is not opened directly. In short making sure user opened the Apex link from the
    -- Oracle Forms application.
    lv_srec :=pkg_myutil.get_session_info(:P1_SID);
    if lv_srec.valid_session then
    lv_retval := TRUE;
    else
    lv_retval := FALSE;
    end if;
    exception
    when others then
    lv_retval := FALSE;
    end;
    return lv_retval;
    end;
    The Application Security property Authorization is set to : MYAUTH
    Logout Navigation Bar Entries-URL TARGET: http://myapp.mycompany.com/pls/apex/apex_custom_auth.logout?p_this_app=105&p_next_url=http://mycompany.com
    ( I cannot put this in the Authentication Logout URL as using -DATABASE- as sentry function (DAD authentication) gives me error: No functional attributes may be set when page sentry function is '-DATABASE-'.))
    so i directly modified the navigation bar entry
    Now I open the apex link from my forms application, and it Works fine. For example
    http://myapp.mycompany.com/pls/QRYONLYDAD/f?p=105:1:2524984933940261::NO::P1_SID:0137099300:
    The authorization function takes the P1_SID value and checks in database,finds the entry so returns TRUE to display the page 1 which i call Menu page.
    If I click logout, it works and takes me to the Mycompany home page.
    My question:
    If save that link and try to access it again AFTER LOGOUT, it still displays the page. Although the session is logged out, how come it still allows to access the page? The authorization function also doesn't fire which would have prevented it atleast. How APEX knows it still a valid session even after logout happens?
    I can see that Since there is DAD authentication, the login happens automatically........ but I cannot change that method. What other option do i have?
    Please help.
    Jay

    1.) Code for the function:
    Basically we are using a private DBMS_PIPE to pass a randomly generated string and read that pipe from Apex using get_session_info. Nothing to do with Apex Session. We just want to make sure the user opened the Apex link from the application.
    function get_session_info (p_session_id varchar2) return pkg_myutil.r_sessionrectype is
    rv_sessionrec eft.pkg_myutil.r_sessionrectype;
    lv_status NUMBER;
    lv_app_id varchar2(20);
    lv_EMPID VARCHAR2(20);
    lv_timeout BINARY_INTEGER := 0; --A timeout of 0 allows you to read without blocking. otherwise the pipe will keep waiting and our purpose won't be solved
    lv_rmstatus number;
    begin
    begin
    -- Valid Session theme: If the pipe doesnot exist means the url is not requested from inside the Forms application.
    lv_status := DBMS_PIPE.RECEIVE_MESSAGE(p_session_id,lv_timeout);
    IF lv_status <> 0 THEN
    raise_application_error(-20003,'Error while receiving.Status = ' || lv_status);
    END IF;
    DBMS_PIPE.UNPACK_MESSAGE(lv_app_id);
    DBMS_PIPE.UNPACK_MESSAGE(lv_EMPID);
    if lv_EMPID is null then
    raise_application_error(-20004,'User EMPID is null in the session info.');
    end if;
    -- construct return record
    rv_sessionrec.session_id:=p_session_id;
    rv_sessionrec.valid_session :=TRUE;
    -- remove pipe
    lv_rmstatus:=DBMS_PIPE.REMOVE_PIPE(p_session_id);
    if lv_rmstatus <> 0 then
    null; -- think what to do
    end if;
    exception
    when others then
    rv_sessionrec.session_id:=p_session_id;
    rv_sessionrec.valid_session :=FALSE;
    end;
    return rv_sessionrec;
    end get_session_info;
    2.) I guess you are right. But doesn't Apex use the Userid and password hardcoded in the DAD? because it displays the username in DAD on the page footer. But It will authenticate everytime. So I want to put another layer so that my pipe verification code executes everytime which can decide whether to show the page or redirect to a error page.
    If i put in a On-Load Before Header Process on Page 1 with the pl/sql code, is there a way there to redirect to different page? I couldn't think of a way to do it. Then i can remove the code from authorization scheme and add to the On-Load process?
    Does this help any?
    Thanks for your prompt response.
    Thanks,
    Jay

  • How to change URL for "Log Out" link in CE?

    We need the Communications Express "Log Out" link to go to a different page to the usual log in page. How can I change this?
    I've found the logout function in the uwc/common/Header.jsp file which looks like:
    function logout() {
      url = "<%= getLogoutURL(request) %>";
      top.window.location = url;
    }and I've found the getLogoutURL fuction in the uwc/js/resourceBundleUtils.js file which looks like:
      public String getLogoutURL(HttpServletRequest request)
        return UWCApplicationHelper.getLogoutURL(request);
      }But I can't find where the URL is actually configured.
    any help would be much appreciated.
    Edited by: brett_ac on Jun 30, 2009 5:05 PM

    brett_ac wrote:
    We need the Communications Express "Log Out" link to go to a different page to the usual log in page. How can I change this?
    I've found the logout function in the uwc/common/Header.jsp file which looks like:
    function logout() {
    url = "<%= getLogoutURL(request) %>";
    top.window.location = url;
    You got it in one. If you wanted the logout button to redirect to google you would set:
    function logout() {
       url = "http://google.com/";
       top.window.location = url;Then restart the web-container.
    and I've found the getLogoutURL fuction in the uwc/js/resourceBundleUtils.js file which looks like:
      public String getLogoutURL(HttpServletRequest request)
    return UWCApplicationHelper.getLogoutURL(request);
    }But I can't find where the URL is actually configured.UWCApplicationHelper is in inbuilt java class. The UWCApplicationHelper.getLogoutURL java function returns:
    <current URL context>/base/UWCMain?op=logoutSo for example if UWC is deployed to http://myserver.domain.com/uwc you would get a logout URL of:
    http://myserver.domain.com/uwc/base/UWCMain?op=logoutRegards,
    Shane.

  • I changed my appleID and primary email and now I can not access anything. iphone shows my old appleID and I can't log in with my old password but I can not log out and log in with new ID. How do I get iphone to work with my updated ID?

    My old nternet account was cancelled and with it my emails. I updated my apple id and password in all my devices (ipad, iphone, imac, except for my moms iphone. I am trying to log out from my old account and set her up with her own apple ID and iCloud etc but it does not let me log out. I have a notebook with all my passwords in it so I know for a fact the password for the old ID/ email is correct yet a window keeps popping up that it is incorrect. I have spent hours reading and trying to fix it myself and nothing is working, same window keeps popping up. Any ideas on what to do? I have an iphone 4S, all software up to date and I made sure my moms phone is also updated. Thank you, any help is greatly appreciated.

    Hi ccharat,
    Welcome to the Apple Support Communities! It sounds like you did a good job editing your Apple ID and primary email address, but you didn’t sign out of iCloud on your iOS device before hand. What you may need to do in this situation is go back to the Apple ID website and edit your Apple ID and primary email address back to the email address that is signed in with iCloud (there is no need to verify the account after editing it back to the old account, just changing it back is enough). Once your Apple ID is back to the original account, delete the iCloud account from the iOS device and be sure to keep all info on the device when prompted. After you delete the iCloud account, go back to the website and edit your Apple ID and primary email address back to the new address. Once it is back to the account you would like, you can sign into the iCloud on the iOS device with that new account and merge all of the data when prompted. Please use the following article as a reference.
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/ts5223
    Change your Apple ID temporarily
    If signing out and back in to iMessage or FaceTime didn't help, try these steps:
    Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
    Go to Settings > iCloud. Complete these steps only if the Find My [Device] setting is turned on:
    Scroll down and tap Delete Account, then tap Delete to confirm.
    Tap “Keep on My [Device]” or “Delete from My [Device].” In either case, your data remains in iCloud and will be updated on your device when you sign in to iCloud again.
    Enter the password for your previous Apple ID.
    Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
    Return to Settings > iCloud and sign in with your new Apple ID.
    I hope this helps,  
    -Joe

  • How do you reset an iPad that is using an apple id that is no longer working, i changed my id and never logged out of it on my iPad before the change

    so i changed my apple id since it was attached to an email i don't use and forgot to log out of my iPad before doing so. i don't use it often so this was probably two months ago and now i notice the old apple id that always will come up invalid user name or password but can't change the actual id to the correct one so have no idea what to do next

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you do this you may find that the password for your old ID isn't accepted.  If this should happen, and if your old ID is an earlier version of your current ID, you need to temporarily recreate your old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How can I lock out my iCloud? Because of forget my old password and I have do a new Apple ID but when wan to log out my iCloud it call me to logout find my iphone but already forget the password . Have any solution ?

    How can I lock out my iCloud?
    Because of forget my old password I have create a new Apple ID
    But when I wan to log out my iCloud,it call me to logout Find My iPhone.
    I had already forget the password that why I create a new Apple ID.
    Have any solution for problem like this ?

    Apps and Music are not from iCloud. Are from iTunes and App Store.
    You can change this from: Settings>iTunes and App Stores>Sign out and sign in with new ID, but you will have to pay again to download apps that you already have in your old account. Or leave it as it is to share purchases with your son.

  • New MBP changes resolution when logging out

    I have a brand new MacBook Pro 2.2 GHz Intel Quad Core i7 with a high resolution glossy display which have a native resolution of 1680x1050 pixles. But almost every time after I log out the resolution changes to 1440x852. In System Settings the resolution says 1680x1050 but under it it says (usable resolution 1440x852), and it's clearly the latter that is upscaled. Also it appears like I'm having two screens, which I'm not, and I can't change the brightness of the screen. On top of it all, the computer gets very slow.
    The only thing that seems to get rid of this bug is by disable automatic graphics switching in Energy system preferenses, but I kind of want automatic switching...
    Is this a bug that is going to be fixed soon, or will I have to have it repaired?

    to test the issue try to install gfxcardstatus (so you can see which card you are using) and logout using intel card (close all app or open some like itunes, appstore...), the logout is ok.
    now, to try using ati open app like cheese,firefox...
    you can also switch card directly using gfxcardstatus .
    i don't know if it is a bug for some new mbp or for all.

  • When you change your Apple ID Password does it log out all the connected accounts?

    When you change your apple id password does it log out all the accounts synced to it or connected?

    You will need to logout of the account on all clients after changing the password, then login with the new one.

  • My dock would not appear. No change after a restart. After force quitting applications in order to log out all I have now is my account desktop picture and a cursur that moves okay but no icons.

    My dock would not appear. Checked preferences, they seemed to be locked. No change after a restart. Tried logging out of account, had to force quit several applications. Now all I have is the account desktop picture and a cusur that works okay. nothing else is on the desktop now. How do I restore?

    All I had to do was complain.  I synced my iPhone to the Windows machine, checked the other account at iTunes prompting (where no apps had shown up previously), reconnected the iPad, and 140 apps downloaded including the App Store.  I have no idea why.

  • New update are listed on the app icon. When I click update all I'm prompted to enter password. When I do, the progress bars go away and nothing gets updated. Tried logging out, reset iPad, and nothing seems to work. Keeps asking me to enter password.

    New update are listed on the app icon. When I click update all I'm prompted to enter password. When I do, the progress bars go away and nothing gets updated. Tried logging out, reset iPad, and nothing seems to work. Keeps asking me to enter password.

    I've been having the same problem for days and just solved it. Tried going to Apple ID and had all the same problems you did in the second paragraph. I signed out with my current username on the ipad under settings--->store and signed back in with my oldest apple id and password. Now the apps don't ask for a password to upgrade. I too had a username that wasn't an email address and had to change to one that was at some point. That's what caused the problems. Hope this can work for you.

  • Apple id changed can't log out of old apple id

    I changed my apple id (there was no instructions to do anything else) and now I can't log out of my old id on my iPhone or my iPad to log into the new id.
    Searching through instructions, it says you have to log out first of all your devices - wouldn't that be good advice to give at the point of change and not have to dig through endless instructions? There are no instructions how to sign out of your other devices once your change your apple id on one device. That's not very consumer friendly.

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, and if your old ID is an earlier version of your current ID, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I used to share one apple ID/account with my ex but made a new one for myself recently and logged out of the old one but when I try to update my iBooks it asks for the old account's password(which my ex changed by now)

    I used to share one apple ID/account with my ex but made a new one for myself recently and logged out of the old one but when I try to update my iBooks (only happens with this app)it asks for the other account's password(which my ex changed by now). I don't understand why this happens when I'm logged into my account and it only happens with that app. Please help, I need to update. :/

    Content (apps, music, ibooks, films etc) is tied to the account that originally downloaded it, so if the iBooks app was downloaded using the account that you used to share with your ex then only that account can download updates to it. As it's a free app you could delete it and re-download it under your own account - and then re-download your ibooks into it (or copy the books to your computer's iTunes first via File > Transfer Purchases and then sync them back to the app).

  • I'm trying to buy more storage on my iPad but when I get to the "buy" button, it has my old Apple ID and I can't go any farther. I've changed my Apple ID on all my devices, logged out, logged back in, rebooted, etc., but that one area still has old one.

    I'm trying to buy more storage on my iPad but when I get to the "buy" button, it has my old Apple ID and I can't go any farther. I've changed my Apple ID on all my devices, logged out, logged back in, rebooted, etc., but that one area still has old one.

    You can't buy more storage on an iPad. You are referring to space on iCloud and that probably won't accomplish what you are trying to do.

Maybe you are looking for

  • Hashcode switch problem

    Hello. Can anyone tell me why this isn't working? I'm trying to use a switch off of a String, so I take the hashcode of it and compare it to the possible input strings. It looks like it should work, it's just comparing intergers, but my compiler alwa

  • Copy and Paste in Viewer

    Hello, Using VS .NET 2003 and CR2008 SP2. Is there a way to add the copy/paste ability in this environment? I have created an application that host the viewer with Windows Forms. I added a context menu with the copy functionality, but it does not hav

  • Variant Config- Dependcy based on Material quantity

    Hi , I have a specific requirement for variant config. If we have a material A1 and it has variants as b1( values 5/10/15) and c1(red/blue/green). when i create the sales order for A1 and enter 5 in the quantity field , then the variant B1 should be

  • Group Policy Allowing certain USB stick but Deny ALL other USB devices?

    Is this possible? I have "Allow installation of devices that match any of these device IDs" enabled.  How do I disable all other USB devices? Thank you!

  • Is there really a tutorials DVD with Logic Studio?

    Hi there. I installed Logic Studio a couple of days ago and so far its going great. One questions I had is about the INSTALLING YOUR SOFTWARE booklet that came in the box. On page 2 about halfway down it says; "Logic Studio Demo Songs and Tutorials D