"Force" Logout

Hello,
I am an admin on my Mac. I have an extra account set up for another family member who uses the same computer regularly.
My question is this:
Can I (as a admin) somehow log the other user out without restarting the Mac?
Thanks

Without restarting? sure. Just log out of your account (Apple menu -> Log out <username>) then you're taking to the standard Login window where you can sign in using the other account.
If you don't want to log out (you said restart), then go to System Preferences -> Accounts -> Login Options and enable 'Fast User Switching'.
This will add a username menu to the right end of your menu bar. From here you can select another username and, once authenticated, the desktop will switch to that of the second user, leaving your original account, applications, etc. running in the background.

Similar Messages

  • How to force logout of portal user

    Hi all,
    we're currently facing trouble with portal users being "locked" in the portal. They are not locked in the ume sense, but when trying to logon they are only able to see navigation framework, and no content. The only content we're using in the portal is MSS/ESS, so the content we're trying to load is from R/3.
    My idea is to manually log out the user in trubble from the portal.
    Now; I can see see active http_sessions using the telnet Administrator session, but I can't find a way to force logout a user. Can anyone please tell me how to?
    We're using Portal SP11, and ESS/MSS SP7.
    I'm thankful for all input! Points will be handed out of course.
    Kind regards,
    Andreas

    hi,
       Try this code.This might help you.
    IPortalComponentRequest request=(IPortalComponentRequest) this.getRequest();
              IAuthentication Authen = UMFactory.getAuthenticator();
    HttpServletRequest req = request.getServletRequest();
    HttpServletResponse res = request.getServletResponse(true);
    //logoff user from Portal
    Authen.forceLogoffUser(req, res,"");
    The third argument is a string which is the redirection URL.
    Regards,
    Srinath

  • Force logout when shutting screen on MacBook

    I was wondering if there was a way to force logout when shutting the screen closed. I am aware of the hot key as well. Thank you

    No. You must log out deliberately.

  • Command Line Force Logout

    So quick background. I setup a rule in mail that if I get a message with text logout to run a applescript script that is this.
    "tell application "loginwindow" to «event aevtrlgo»"
    that should force logout however mail would keep freezing and it would skip logging out because of it.
    I could kill loginwindow but then its not a proper logout and file vault doesn't re-encrypt my home directory so I can't do that.
    Is there a force logout that does it right?
    Thanks,
    Andrew

    Bill Scott wrote:
    Another thing you can do is install fink's X-11 based firefox, and then presumably it will behave normally. This also has the advantage that you can have the normal firefox open for something else.
    Let me see if this works, although I don't see Firefox listed under the files in FinkCommander. It might not be available for OS-X 10.4/Intel
    http://pdb.finkproject.org/pdb/package.php/firefox
    Will the 10.3 version work? "One never knows, do one?"
    Message was edited by: nerowolfe
    Message was edited by: nerowolfe

  • Forced logout after writeback

    I have very strange issue.
    After pressing the writeback button, system forces logout (goes to the login screen).
    At the same time writeback works, and is executed correctly (including commit).
    Has anyone encountered this issue?
    Below is my writeback message file - the WriteBackAccessApproval message gets triggered.
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="WriteBackAccessRequest">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <insert>begin
                                  obiee_user_management_pkg.save_access_right_request('@{c5}','@{c3}','@{c0}','@{c54}','@{c62}','@{c64}', '@{c79}');
                             end;</insert>
                   <update>begin
                                  obiee_user_management_pkg.save_access_right_request('@{c5}','@{c3}','@{c0}','@{c54}','@{c62}','@{c64}', '@{c79}');
                             end;</update>
              </writeBack>
    </XML>
    </WebMessage>
    <WebMessage name="WriteBackAccessApproval">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <insert>begin
                                  obiee_user_management_pkg.approve_request('@{c0}', '@{c9}', '@{c10}');
                             end;</insert>
                   <update>begin
                                  obiee_user_management_pkg.approve_request('@{c0}', '@{c9}', '@{c10}');
                             end;</update>
              </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>

    Hi Martins,
    Can you check your presentation server log file and your BI server log file and post any errors you see in them here? I'm wondering if some type of failure is happening after the write back occured.
    Thanks!
    -Joe

  • Forced logout for convergence

    Hello,
    I'm trying to do a forced logout for specific users from the convergence webmail.
    Om the mailstore machines I'm running "imsconnutil -k -u <user_login>". The command succeeds, but there is no forced logout.
    https://wikis.oracle.com/display/CommSuite/imsconnutil
    What is the correct way to force a logout for a convergence user?
    The ENS daemon is enabled.

    There is a MOS knowledge article about this:
      How To Get A Specific User Logged Off Or Disconnected From Convergence (Doc ID 1421725.1)
    https://support.oracle.com/rs?type=doc&id=1421725.1
    It is not as simple as using the imsconnutil -k command for IMAP.
    There is also an enhancement request:
       BUG 17529404 - Provide build-in possibility to disconnect a user
    Please open an support request to be added to that ER 17529404.

  • Unable to force logout of Default Web Application

    Thi is a repost : still having the problem ... any ideas ?
    Original Post ........................................
    ........................................................ I am having a problemlogging out....I can not log out. Using WLS 6.0sp1 using form based authentication
    with a custom RDMBS Realm. I believe this functionality was working but now that
    the application has been set up as the default web application logout no longer
    works ?
    In our application we have a logout link that points to a jsp page that does the
    following:
    <% if (session != null) session.invalidate(); session = null; %>
    Note, this is the last jsp to be executed on the page. I looked at the compiled
    servlet and it doesn not appear that anything is being done that would reinitialize
    the session ...
    Here is the try-catch of the compiled jsp servlet .. try { // error page try block
    out.print("...");
    if (session != null) session.invalidate();
    session = null;
    out.print("...."); .... }
    catch (Exception __ee) {
    while (out != null && out != originalOut) out = pageContext.popBody(); pageContext.handlePageException(_ee);
    After this page is returned, the user can still access protected content, any
    ideas ????
    Is there a method in Weblogic security package to deauthenticate a user to force
    re authentication ?
    I just double checked it and lo and behold the session is actually being invalidated
    because the users session data is gone, however they are still able to access
    protected resources. Does this mean that weblogic is not using session to maintain
    authenicated flag ? Or does this mean that the call to pageContext.popBody() is
    creating a new session ? Or does this mean that weblogic has a bug ? Or does this
    mean that I don't know what I'm doing ?
    Bea, please provide a complete response, I have seen this type of post many times
    on this board, can we solve this problem once and for all.
    Thank you kindly,
    Mark Lesk

    I checked this angle. They are able to see protected content.
    However, bea has finally acknowledged the problem. It exists when you are using
    multiple web applications with single sign-on.
    The problem has supposedly been fixed in a rolling patch available for SP2 of
    WebLogic 6.0. Three new methods have been added that provide the ability to log
    users out.
    Hip Hip Hooray !!!!
    See this link : http://commerce.bea.com/downloads/wls_patches.jsp
    The new logout methods are described in the associated readme.
    Thanks
    - Mark
    "mblumrich" <[email protected]> wrote:
    potentially a silly question.... but are you sure the users are not simply
    looking at pages that are in the web browser's cache? Are they able to
    look
    at privileged content that they haven't seen before?
    cheers,
    Markus
    "Mark Lesk" <[email protected]> wrote in message
    news:[email protected]...
    Thi is a repost : still having the problem ... any ideas ?
    Original Post ........................................
    ........................................................ I am having
    a
    problem
    logging out....I can not log out. Using WLS 6.0sp1 using form basedauthentication
    with a custom RDMBS Realm. I believe this functionality was workingbut
    now that
    the application has been set up as the default web application logoutno
    longer
    works ?
    In our application we have a logout link that points to a jsp pagethat
    does the
    following:
    <% if (session != null) session.invalidate(); session = null; %>
    Note, this is the last jsp to be executed on the page. I looked atthe
    compiled
    servlet and it doesn not appear that anything is being done that wouldreinitialize
    the session ...
    Here is the try-catch of the compiled jsp servlet .. try { // errorpage
    try block
    out.print("...");
    if (session != null) session.invalidate();
    session = null;
    out.print("...."); .... }
    catch (Exception __ee)
    while (out != null && out != _originalOut) out = pageContext.popBody();pageContext.handlePageException(__ee);
    After this page is returned, the user can still access protected content,any
    ideas ????
    Is there a method in Weblogic security package to deauthenticate auser to
    force
    re authentication ?
    I just double checked it and lo and behold the session is actuallybeing
    invalidated
    because the users session data is gone, however they are still ableto
    access
    protected resources. Does this mean that weblogic is not using sessionto
    maintain
    authenicated flag ? Or does this mean that the call topageContext.popBody() is
    creating a new session ? Or does this mean that weblogic has a bug? Or
    does this
    mean that I don't know what I'm doing ?
    Bea, please provide a complete response, I have seen this type of postmany times
    on this board, can we solve this problem once and for all.
    Thank you kindly,
    Mark Lesk

  • Force logout on bookmarked page

    apex 4.21 in 11gR1 on AIX 5.3, using EPG.
    I have custom authentication which I built, working well so far, builds a fine dynamic tree menu, etc. Now suppose someone goes in through the login and menu like it should be done, then decides to bookmark the page under the menu option once he gets there, in an attempt to bypass the login and menu. this won't do.
    So I've been searching via docs, Google and forums for a clear answer how to expire a supposedly non-existent session and redirect to the login page for my app. (bear in mind these are actualyl separate apps being invoked through the menu, but I pass the session ID dynamically in the URL under the menu options.) I am content to hard-code the app ID for my login to the menu, but what is the right API function, and with what values should it be populated? several ideas out there for older versions of apex, need a 4.2 answer.
    I just want the background process to fire at load before regions, and go immediately to the login page. I am using apex_authentication.is_authenticated to tell me if this is needed, and it seems to be correctly catching the circumstances.
    I greatly value the forum assistance.
    begin
    if apex_authentication.is_authenticated then
        null;
    else
        htp.p('Who are you? You need to log in! Redirecting to login ...');
      -- something goes here that will accomplish the redirect to app 108 login page ...
    end if;
    end;Edited by: gpoz on Apr 23, 2013 3:26 PM

    for what it's worth, my attempts with these didn't get me there ...
        htp.p('Who are you? You need to log in! Redirecting to login ...');
        --apex_custom_auth.logout(p_this_app=>108, p_next_app_page_sess=>'108:101');
        --apex_authentication.logout(p_app_id=>108, p_session_id=>apex_custom_auth.get_session_id);

  • Force logout a managed user?

    Hi all
    I'm running an OD server with 10 clients connected (all 10.4.6, clients and server). Users, groups and computers are managed, and simultaneous login is disabled for all users.
    My question: How can I (forcibly) log a user out? You know, as you can disconnect a user who is connected to an AFP share...
    Right now I was trying to log in on one of the managed clients, and it keeps telling me that I'm already logged in on another one, but I'm definitely not. Something must be hanging somewhere, but where?
    TIA, Tina

    Yes, and the user is nowhere to be found. Nowhere on
    the OD server and nowhere on the fileserver where his
    home resides. I know about the disconnect option for
    AFP/filesharing connections, but what about users
    logged in to a client by authenticating against an OD
    server?
    Tina
    If you're running Remote Destop you can logout clients from the "Manage" menu with "Log Out Current User...".
    You can also ssh to the client and issue this command:
    sudo ps -aux | grep loginwindow
    it will return the PID for the loginwindow.app process.
    Then issue the command:
    sudo kill -9 xxx
    where xxx is the PID of the loginwindow.app process.

  • Force Logout without "Do you want to save?" Prompt

    Hi,
    I am new to Applescript, and have been trying to learn as much as I can.  Most of it makes sense, but I'm having a few issues with a particular task.  I've been asked to come up with a way to essentially log out a user after 30 minutes of inactivity.  That part's not really an issue, but when it comes to actually logging the user out, I run into a problem if the user has any open, unsaved documents opened.
    This forces the "Do you want to save changes?" dialog box to appear, which - if left unanswered - ends up causing the log out process to timeout.  I suppose what I'm wondering is if there's any way to force close all programs/open documents/etc. with no prompt to save and log off.  Other sites and forums mentioned using Unix commands, but I'm not that familiar with them (and most "do shell script ..." and some variation of "killall" still brought up the same user prompt about saving).
    I totally understand the reason behind prompting users about that, but I'm just trying to figure out if this is possible.  Any hints, tips, or advice really would be appreciated.
    Thanks!

    Your problem here is that it may depend on the applications in use.
    All applications should understand the 'quit' event, so you can tell them to quit. Most of them should also accept the optional 'saving' parameter to tell them whether or not to save open documents, but there's no guarantee of that.
    In addition, recent applications that support versions and resume shouldn't prompt at all - they should save their current state and just restore that state next time they're launched.
    So, since there are multiple cases that require different actions, your first problem is going to be categorizing applications so that you know what actions to take. Given that you likely can't predict all the applications that will be running, that's going to be hard to do.
    I might be over-thinking it though, so let's simplify:
    First, it's easy to get a list of running apps:
    tell application "System Events"
              set runningApps to every application process whose background only is false
    end tell
    From here it's easy to iterate through them, first trying the 'safe' option of not saving changes. Here I'm using a 'try' block to catch errors (e.g. the application doesn't understand the 'saving' parameter), at which point I can re-try the quit without the parameter:
    repeat with eachApp in runningApps
              try
                        tell application eachApp to quit saving no
              on error
                        try
                                  tell application eachApp to quit
                        end try
              end try
    end repeat
    So, in essence, this will iterate through the runningApps. It first tries to tell the application to quit with the 'saving no' option. If that fails it then re-tries without the 'saving' option.
    This should be enough to quit most apps, after which you can issue the log out command.
    If you have applications that support versions and restore you could put them in an exceptions list, knowing that when they're told to quit they'll save state, so you don't need to interact with them

  • Forced Logouts with IE8

    Unable to use webmail service because I am force logged-out each time I try to logon.  The webmail client goes through a series attempting to load and quickly logging out three times before I am entirely kicked out of the email system.
    The date and time on my PC are correct and I have cleared the chach and cookies from my web browser on numerous occasions.  I would note that my emails display as London time when working in webmail. 

     Hi sorry to hear you are having an issue with IE8 and our webmail site.   I recommend the following steps:
    1.  Open IE
    2. Click on Tools
    3. Select Internet Options
    4.  Click on the Advanced Tab
    5.  Click on Reset 
    6. Once the reset is complete, try logging back into webmail
    If this doesn't work try using another browser like Mozilla Firefox or Google Chrome and see if they have the same issue as IE8.
    Shamika_Vz Verizon Support
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or Plan.

  • Forced Logout

    Hello!
    Right now I'm using Apex 4.2, Oracle 11g on apex listener Standalone, using Glassfish as a webserver. For some reason I don't understand, when I log into my workspace, I can normally go into the sql workshop, team development, and administration pages... But as soon as I click ANY of the Application Builder related links, my session expires and I'm back on the workspace login page...
    Any help on this issue please?
    Aldo

    Hi,
    Sorry, I meant I'm using the Apex Listener on Glassfish... Idk why I wrote that Standalone part... maybe I was sleepy. Anyway, the thing is, whenever I click on Any of the Application Builder links (import, export, create.. etc.) I get automatically kicked out from my session and forced to log in again. And when whenevr I click on of the Application Builder links the same thing happens again... which is weird, I believe its the first time I have ever seen something like this...
    Aldo

  • HOW can I FIX Mavericks and Safari 7.0 to allow Gmail to work?  Gmail has been FUBAR'd since downloading Mavericks today.  Finally found the brute-force logout site to just getr logged out; can't keep doing that.  Other features no longer work, either.

    Made big mistake of downloading Mavericks today.
    Been struggling with all the FUBARd messes it caused, ALL DAY.
    Google basic buttons don't work--can't log out or other basic functions.
    Website use is impaired.
    It took almost 3 hours to do a basic online order on one of them--at this rate, I'll be out of business soon, and it's seriously impairing Christmas preparations!
    Google Voice/Video are screwed up, had to RE-download their voice/video plugin all over again--again.
    Voice/video quality is REALLY poor.
    Lag times in so many things are bad.
    Thought this would download WITH the better writing/bookkeeping programs--NOT!
    Mac Maps is piddle compaired with GoogleMaps.
    The Email program on the desktop is REALLY hard to use, has few useful functions.  It's MAYbe good if one only has ONE email; using it with severeal various email accounts is a serious liability in many ways--like filing, sorting, marking, etc.; no clear way to move email files to an external drive to save, to unload the HD.
    HOW can Safari and Mavericks be fixed?
    IF not, HOW can I REMOVE Mavericks and get back to Mountain Lion--which was not too great, but certainly more functional than Mavericks!
    I NEED my web-based emails to work--NOW...NOT when Mac finally gets around to fixing things sometime later.
    I NEED online ordering to work--NOW--not later when Mac finally gets around to fixing things.
    PLEASE someone--any help out there?  I couldn't even find but a rare hint that Safari 7.0 even exists--much less that anyone admits it's got problems, nor fixes for it.
    What to do?  Throw the whole unit out? Wipe and reboot?  Dumb it back to OS 10? HOW? WHAT?
    [freaking out here...]

    Zak Adelman, LexSchellings,
    It's a shiney new computer.  Came loaded with Mountain Lion.
    Too busy learning to use the blessed thing, to download anything....except...
    The only pluggin that had to be loaded, was Google Voice-Video pluggin, while Lion was still it's OS.  [AND been using the Safari that came already in it.]   Had to do that a couple times--nothing new there--that plug-in had to be re-loaded when using a PC, too--THAT happened even before Google slammed everyone into coerced use of it's Google+. 
        [I understood from others, that Firefox won't work in Mac units--or I woulda put that in it to see if that solved anything]
    This unit seemed a bit sluggish from the git-go, out-of-the-box. 
    I figured that was probly the local DSL here---rural DSL is...um...our DSL's not something to brag about, but it's the best we can do...
    The difference between speed of loading pages, etc. on the new Mac, was --not-- toooo terribly different--though yes, slower on Mac....and chalked it up to my inexperience with Mac. 
    Been trying to get things up and running for a bit over a month now.
    NOT doing very well at it--just barely getting by; rapidly falling behind what needs done [work]. 
    Google worked just --OK-- when OS was Lion, as did the Google voice/video--slower, and voice-video was kinda scratchy or glitchy, but worked enough to --get by--.
    Loading Mavericks, ruined that.  
    VOIP calls via Google talk have bad echio, static, cut-outs; video calling was pixilated or not working; WAS cued to re-load it's Voice-Video plug-in....which seemed to help a bit, though not very well; it only helped the Voice-Video some, not all--figured that was probably Google issues, less than Mac's, since Google has been increasingly dysfunctional as they have twisted it to be a social media-dominant thing.
    [[now seeking an email venue that does what Gmail was good at, including the Voice-video calling, that has no intention of turning itself inside out to be "social"]]
    Can't sign out of Gmail or Google+, nor use buttons in upper right corner with the drop-down menu.  
    NO buttons in upper right corner cluster on Gmail work, except the name+ button to toggle over to Google+---which I don't need! [yeah--THAT's a Google problem!] 
    Can only switch to HTML version by catching that button as the account signs in--if one fails to be fast enough with their fingers, it goes to Google+; can't get to email unless type in mail.google.com.
    Managed to catch that button today, and clicked to use HTML "permanently" until these issues get solved.
    ALSO:
    Have fairly new [about 1 year?] HP bluetooth printer-scanner. 
    BUT, after Mavericks loaded: it HAS the unit listed, HAS drivers for it, HP unit IS listed as default printer, everything --seems-- "go",
    .....except Mac keeps posting it's out of ink, and/or, not hooked up, and/or not turned on--even when it is on.
    It's SUPPOSED to be blue-toothing that printer/scanner.   
    It did it for Lion, before loading Mavericks, even though it was troublesome to get it to work, it at least HAD printed one document when Lion was the OS.  
    Thank you...Downloaded EtreCheck: 
    BTW:  Trying to copy/paste data from that check list, to this post, was achaic: 
    had to use Edit, select all, then use edit again to get it pasted--the mouse buttons weren't allowed to copy-paste using right-click functions [is this a relic limited-function "thing" with Mac?, or is it because I wanted to keep using this new wirless, non-Mac mouse?].
    Advice?
    See below...
    Hardware Information:          Mac mini (Late 2012)            Mac mini - model: Macmini6,1
                  1 2.5 GHz Intel Core i5 CPU: 2 cores;           8 GB RAM
    Additional:
       Monitor used = Visio flat screen. [not Mac]
       Keyboard = Logitech solar wireless [not Mac]
       Mouse = Logitech wireless
    Video Information:            Intel HD Graphics 4000 - VRAM: 1024 MB
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    System Software:
              OS X 10.9 (13A603) - Uptime: 2 days 19:33:25
    Disk Information:
              APPLE HDD ST500LM012 disk0 : (500.11 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) /: 499.25 GB (456.94 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
    USB Information:
              MediaTek Inc MT1806 
              Logitech Logitech USB Headset
              Logitech USB Receiver
              Apple Inc. BRCM20702 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist
              [loaded] com.google.keystone.daemon.plist
    Launch Agents:
              [loaded] com.google.keystone.agent.plist
              [loaded] com.hp.devicemonitor.plist
              [loaded] com.hp.messagecenter.launcher.plist
    User Launch Agents:
    User Login Items:
              iTunesHelper
              SpeechSynthesisServer
    3rd Party Preference Panes:
              Flash Player
    Internet Plug-ins::
              FlashPlayer-10.6: Version: 11.9.900.170 - SDK 10.6
              QuickTime Plugin: Version: 7.7.3
              Flash Player: Version: 11.9.900.170 - SDK 10.6
              Default Browser: Version: 537 - SDK 10.9
              o1dbrowserplugin: Version: 4.9.1.16010
          ======  npgtpo3dautoplugin: Version: 0.1.44.29 - SDK 10.5  ===[this was in red]=====
              googletalkbrowserplugin: Version: 4.9.1.16010
    Bad Fonts:
              None
    Old applications:
              HP Device Monitor:          Version: 2.7.0 - SDK 10.5
                        /Library/Printers/hp/hpio/HP Device Monitor.app
    Time Machine:
    ===      Time Machine not configured!  ===[this was in red]===
    Top Processes by CPU:
                   6%          WindowServer
                   4%          Safari
                   4%          SafariDAVClient
                   2%          EtreCheck
                   0%          com.apple.iCloudHelper
    Top Processes by Memory:
              303 MB          Mail
              270 MB          Safari    ======[this is version 7.0 ]======
              262 MB          mds_stores
              147 MB          softwareupdated
              147 MB          com.apple.IconServicesAgent
    Virtual Memory Statistics:
              1.77 GB          Free RAM
              2.85 GB          Active RAM
              2.36 GB          Inactive RAM
              1017 MB          Wired RAM
              4.64 GB          Page-ins
              111 MB          Page-outs

  • Best Method for setting up a time-defined logout function.

    Greetings,
    I'm attempting to setup an application that is only valid between certain hours of the day. I'm able to setup a test to verify that I'm within that time frame, but I'm not sure exactly where to put this pl/sql procedure to check to see if it's within a preset time frame.
    I've placed the application within the specific page and it works fine, but as it needs to be pretty much application wide, should I put it on page zero (which I believe is executed every time) or should I setup an application level process. I've tried the application level process way, but just get thrown into an infinite loop.
    Here is the snippet of code that is doing the test and the forced logout procedure
    declare
      begintime date := to_date('11:27','HH24:MI');
      endtime   date := to_date('17:00','HH24:MI');
    BEGIN
      IF to_char(sysdate,'HH24:MI') >= to_char(begintime,'HH24:MI') THEN
        wwv_flow_custom_auth_std.logout(p_this_flow=>v('APP_ID'),p_next_flow_page_sess=>v('APP_ID')||':101');
        wwv_flow.g_unrecoverable_error := true;   end if;
    END;Is this method OK for doing what I want to do, and where should I place this function. Is there a way of setting it up as an application level process without it going into
    an infinite loop.
    Thanks in Advance,
    Cliff Moon
    UTPA Webmaster
    Message was edited by:
    cjmoon

    Cliff - I don't understand your date logic but if you get that part working, I'd recommend using the authentication scheme's Session Verification Function attribute. Put logic in there that returns false if it's not okay to be running the application at the current time (this is executed for each page view.) Otherwise the function must return true. Then the engine will redirect to the login page (and I believe the function won't run there).
    Scott

  • User message on programmatical logout

    Hi folks!
    I have some problems generating a user message.
    My App (apex 4.0.2) has two login validations: 1. LDAP-Authentification, 2. Validation whether a user has access to certain functionalities or to none at all. This validation takes place in a process on the login page and an asignment of a key value to an item.
    On "none" - that is: no registered user, the session state must be resettet, that is: a forced logout, which I accomplish in a process on page 1 before header on a certain condition of that item:
    begin
      --  htp.p('<script>alert("No registered user. Please contact the IT-department.");</script>');
      apex_application.g_unrecoverable_error := true;
      wwv_flow_custom_auth_std.logout( p_this_flow=>:APP_ID,p_next_flow_page_sess=>:APP_ID ||':1');
      -- :P101_LOG_ERR_MSG := 'No registered user. Please contact the IT-department.';
    end;Now what is commentet out here is whats gives me headaches: I want to user to get a message, that he has to register. But none of this works in conjunction with the logout process, becaues the session - as I want it - gets resettet.
    P101_LOG_ERR_MSG is a text box on the login form. If I set "maintain session state:" to "per user", what happens is: the text message do gets assigned, but always stays and I cant delete is in a later computation or process. When I set it to "per session", its not shown at all.
    Also, why does the java script Alert not show? It works on other places, no matter where the processing takes place.
    I hope this gives you a picture of the situation. Can you help me get the usermessage to show in some way?
    Thanks a lot in advance,
    Tobi

    Hello Tobi,
    Validation whether a user has access to certain functionalities or to none at allI suggest to create an authentication scheme for your above validation and apply this validation either to page 1 or to entire application (depending on your requirement) and put the error message at authentication scheme.
    That should work as per your requirement.
    Regards,
    Hari

Maybe you are looking for

  • Is there any way I can convert a Test stand sequence and corresponding vi's to an executable?

    I need some creative ideas on how I can convert a test stand sequence into an executable in the shortest possible time. I know that beats the entire purpose of using TestStand but I need to have a way to do this. Is there no other way i can accomplis

  • Oracle financial application and oracle 8i problem

    Hi Every one, I install the oracle financial appliation and oracle 8i, it give following error messages " TNSLSNR.EXE unable to locate dll the dynamic link library orancrypt8.dll could not find path G:\oracle\bin............ " oracle financial applic

  • ExFAT external usb disk not working in Lion?

    Hi, I used to be able to read/write to an external usb disk, exFAT formatted, using Snow Leopard. Since upgrading to Lion I can't seem to be able to find the disk anymore on the desktop/finder. When I go into Disk Utility it sees it but thats pretty

  • Combo/list box image next to option

    Hi, I'm trying to display an image (small icon) within a drop down/combo/list box in a form. I've not found a simple way of doing it and wondered if anyone could advise of an easy way to do this seemingly simple task ? The result I'm after can be see

  • Exceedingly slow download speeds on brand new mbp os lion

    Hi, There seems to be a lot of posted issues with slow download speeds on the MBP.  I purchased mine 2 weeks ago (Oct 2011), a 13" core i7.  My download speeds are a tiny fraction of what I get with a 10 year old Dell.  Reading the posts on this issu