Logging out portal user programitically? (JSP)

I am trying to log out users using a JSP. Here is a snippet of
code calling the wwsec_app_priv package. I am not having any
luck with this. Any suggestions?
Thanks,
Tom Henricksen
CallableStatement logout = null;
logout = con.prepareCall ("begin if wwctx_api.is_logged_on
then wwsec_app_priv.logout(p_done_url=>?); end if; end;");
logout.setString(1,logout_url);
logout.execute();
logout.close();

The syntax you have works within our current web page (PSP
page), but we have never tried it directly with PL/SQL.
One thing you might want to look at is that "normally" (from a
web page) the URL is called via the portal30 DAD:
/pls/portal30/PORTAL30.wwsec_app_priv.logout?p_done_url=
http%3A%2F%wherever.com
Could it be that this works if PORTAL30 is running the package,
and not the actual user? Just a wag. --Kate                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Log out the user

    How can I log out some user on the VPN 5000 system With the VPN 5000 Manager? Is any possble for doing this? Thanks.
    Mike

    Hi there,
    To log a user out of the Portal I decided to go the route of: UMFactory.getAuthenticator().logout(req, res)
    Code is below.
    Thanks for your replies,
    - Vik.
    <code>
    IAuthentication Authen = UMFactory.getAuthenticator();
    HttpServletRequest req = request.getServletRequest();
    HttpServletResponse res = request.getServletResponse(true);
    //logoff user from Portal
    Authen.logout(req, res);
    </code>

  • How to get password of a logged in portal user in webdynpro.

    hi,
    i want to get the password of the logged in portal user through webdynpro. i already know how to get the user id and other information through webdynpro (using WDClientUser), but i want to get the password as well.
    this is an urgent requirement. Immediate help will be highly appreciated and points will be awarded for helpful answer.
    thanks in advance.

    Hi
    User Management APIs don't give the liberity to obtain the password, instead you can verify a password. Please check if your requrirement can be modified to check for password.
    Please use code mentioned below and the one suggested before.
    loggedInUser = WDClientUser.getCurrentUser();
    user = loggedInUser.getSAPUser();
    if (user != null)
    IUserAccount[] acct = user.getUserAccounts();
    if(acct[0] != null)
    b = acct[0].checkPassword(password);
    Thanks
    Srikant

  • Logging out a user

    Hi,
    I'm new to WebLogic, and I'm trying to figure out how to log out a user. I am currently using Authenticate's logout method (weblogic.security.auth.Authenticate.logout(weblogic.security.Security.getCurrentSubject()),
    and it seems to work, but the user who was just logged out can't log in in the same browser until another user has logged in and out. I've tried destroying all the cookies and ivalidating the current session, but to no avail. Any help would be appreciated. Thanks,
    Dmitriy

    Actually, most importantly in our logout procedure we must set loggedIn to false in a database table.
    We've talked about having the clients send a "heartbeat" to the model residing on the OraAS. If we do not get a heartbeat for a set number of times we could "time out" a client. If we were to go this route, we'll have to register the clients (probably by IP) and spawn a new thread for this service.
    Does anyone feel this is not the route to go? Is there anything a bit more KISS to implement. Obviously this adds a bit more complication and more points of failure to our current system.
    -brian

  • Logging out all users

    To perform a back-up I want to log out all users. Currently I use the 'unloadapp' ESSCMD, but this does not seem to log out users who are currently retrieving data. As a result my back-up fails.Does the 'logoutallusers' command log of all users (active, inactive)?Regards,JG

    Howdy!We do this via script for each application using the following essmsh syntax:"alter application appname disable connects;"This works great. We then re-establish any connections that we killed with the following statement:"alter application appname enable connects;"Hope this helps!JR

  • How to log out all users from Application to switch partitions?

    Hi,
    We currently use a maxl script to switch over active partitions and as you may know, users need to be logged out when this happens. The current script we use is:
    alter system logout session on application ABANSWER force;
    alter system kill request on application $4;
    alter system kill request on application FCSTA3;
    alter system kill request on application FCSTA4;
    alter system kill request on application HISTA;
    alter system kill request on application ABANSWER;
    drop transparent partition ABANSWER.REPORT from $4.$2;
    Quite often we seem to get the issue that some user can't be logged out because they are running something intensive and this causes the partition switch to fail.
    Does anyone know a better way to do log out the users or kill the sessions so we can reliably switch the partitions? Any help would be appreciated.
    Thanks
    Arfan

    that means that the app was purchased under that seperate apple id. u will need to delete the app and redownload it using the yahoo one if u want to be able to update it.

  • Account log out without user consent

    Hi all,
    There are 4 separate user accounts under my MacBook Pro running Lion. Today I logged into one account and then used switch user to switch to another account.
    When I wanted to switch back to the previous account, it appeared to be logged out. I didn't do it, and was not sure about what caused it.
    May I ask whether anyone has the same issue or knows the causes and solutions?
    Thanks a lot.

    >>At the Log in Screen I guess there is no way to log out a user unless you log in and log off.
    That's true, other than restart, which gives you the option, while warning that they may lose unsaved changes.
    >>roam wrote :
    You can log off a user without first logging into their account, as shown in the following...
    It works at least in Mac OS 10.6. I don't know about Mavericks.
    It does work, and testing here, on the next login, windows & apps are just as they were left for the other user, even just-edited & unsaved files... no promises though.

  • How to find out portal user from sso cookie ?

    Hi,
    I want to find out the portal user id from Portal30_sso cookie. It is required for security in my java servlet.
    Thanks
    Vikas

    First of all, you can't get anything from the portal30_sso cookie or the portal30 cookie or the SSO_ID cookie. These are cookies established for (1) The login server session; (2) The Portal session; (3) The login server single sign-on cookie - visible only to the login server.
    When you want to know who the current user is, you need to establish the context. If your servlet is standalone and not a partner application to the login server and it's not a portlet, etc., then what context does it have? What concept of users does it have? If you are really asking what Portal is currently logged on, that is still a loaded question. The user's browser could be accessing several portal's at the same time, each with a different identity. What I am getting at is that your servlet needs to somehow be associated with a particular portal before it can even think of asking this question.
    The ways to associate your servlet with a portal would be
    [list=1]
    [*]Make it a partner application
    [*]Make it a portlet
    [*]Make it an external application
    [list]
    Hope that helps.

  • Can administrator log out a user from application

    Hi
    My application has functionality to display all the logged in users of the application. This screen ia available to only administrators of the application. Now can the administrator logout any of the logged in users from his own screen? If yes then how?
    Could you please give me some pointers?
    Thanks & Regards
    Inder Jeet Singh

    there are several ways an administrator can do that. but that depends on the way you manage your sessions.
    how are you getting the list of logged users? if it is from the database based on some field in some table then you can give the functionality to administrator to set that value to the logged out status(or whatever you are using).
    but that depends on the way your application is keeping trak of the logged users.

  • Fetching Currently Logged in Portal User & Fetch Users logged on whole day

    Hi All,
    I want to fetch the Currently online Portal Users and their name.
    Also we want to fetch all users from different servers as we have load balancing.
    Also i want to fetch which users have logged on a particular day, so that i can come to know that at end of day which users have logged on.
    Thanks & Regards,
    Dhruv Shah

    Hi,
    you can connect to the above mentioned tables by creating a alias or else using the default alias
    for this you have to login into the visual admin
    server ---> services -
    > jdbc connector
    there you can find the table with the alias.
    The default aliases what i know are SAP/BC_JMS,SAP/BC_UME,SAP/BC_WDRR.
    I think this will be usefull
    or else craete a new alias using Add alias button.
    The code for getting connection is
          InitialContext ctx = new InitialContext();
          DataSource ds = (DataSource)ctx.lookup("jdbc/SAP/BC_JMS");
         Connection con = ds.getConnection();
    //you can write ur select statement and continue
    But i have a doubt can you tell me what information does these tables contain.
    Thanks & Regards,
    Lokesh
    Edited by: lokesh kamana on Aug 26, 2008 8:57 AM

  • Log out other user - what if I do not know who they are?

    I work in a hostel and use a computer that has two user accounts. When I plug my iShuffle on my user account (that is only used by me) in the following warning comes up:
    "Another user on this computer is using the iPod software, so iTunes is unable to communicate with this iPod. Please ask the other user to log out?"
    I do not know who the other user is, so cannot log them out. Is there a way of fixing this without re & de-installing the software?
      Windows XP  

    -Open the Task Manager (press CTRL-SHIFT-ESC).
    -Click the Processes tab.
    -Find the iPodService.exe, select it, and End Process it.
    -Repeat for iTunes.exe and iTunesHelper.exe, if they are there.
    -Close the Task Manager.
    -Start iTunes again.

  • 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

  • Clients get stuck when logging out current user

    I'm using ARD 3.1 to control 9 different Macs (from G4's with 10.3.9 to Dual G5's with 10.4.8, all with 3.1 clients, all with several user accounts) in the same company in Germany. I'm connected to the company through an SSH tunnel all the time.
    Some of these Macs regulary go to "ARD Not Active" after I log out any current user from the Apple menu on that computer (i. e. if I want to log out the admin and switch back to some normal user).
    From my end it then looks as if this computer would be down, but actually the computer is still on and seems to be in some kind of deep sleep that can only be ended by hitting some keys on the keyboard in Germany or sometimes even only by restarting the computer.
    This happpens frequently on 3 of these 9 computers. 2 of them have 10.4.8 and 1 has 10.4.6. The same thing also happened all the time with ARD 3.0.
    Any idea what this might be and how I could fix this? It's often very annoying because I have to wait for the next day before I can continue to work on these computers.
    Thanks and greetings
    azdesertman
      Mac OS X (10.4.8)  

    Part of your problem sounds like the energy saver settings are putting the machine to sleep. You might be able to wake them simply by executing a "Wake" command on the computers.
    You could also set the energy saver settings to not allow the machines to go to sleep.

  • Inactivity Log Out Multiple users

    As a family we share one IMac. All five of us are pretty active. I have selected "Log out after 30 min inactivity" however this is not occurring. None of the accounts logout automatically, and when all 5 accounts are logged on, the system is real slow. I also manage the users accounts and have passworded the system preferences, just so I control the setup. Any suggestion on why the users are not logging out after 30 min?

    Where are you setting that preference? I've never seen it.
    Also, as noted, I don't imagine it will allow logout if there are any unsaved changes to anything being worked on. Safari has a preference to ask if you want to close multiple tabs.
    Message was edited by: Barney-15E

  • Logging out another user?

    my cousin tried plugging his mp3 player in and using my Itunes, but it didnt work for him. Now whenever I plug my Ipod in, it says it can't run my Ipod unless I log out the other user. How do I do this?
    pc   Windows XP  
    pc   Windows XP  

    You can restart your PC or follow these directions:
    You can also try this
    Close iTunes.
    ctl-alt-del > Task Manager > Processes tab
    Click the ImageName column to sort alphabetically
    Check the box for showing processes for all users
    End these processes
    iPodService.exe
    iTunesHelper.exe
    Close TaskManager.
    Start > Run > "C:\Program Files\iTunes\iTunesHelper.exe"
    The quotes are important, make sure they are there. You can cut/paste from this post.

Maybe you are looking for

  • Discoverer viewer displaying all the reports instead of one report

    Hi Team, I have created one menu and attached 4 reports to that.after that that menu is attached to the main menu.This menu is attached to the one xyz responsibility. Now i am facing the problem is : After logging to the responsibility,i clicked on i

  • Web.xml file

    Hi I have a servlet that is working perfectly through JBuilder. When I try and run it through Tomcat I get an error saying it cannot find the file. In JBuilder I have a html form. The value entered in the form is passed to the servlet. The servlet ca

  • 10.4.6 Font importing problem - .exe

    I have purchased a G5 and a Mac Mini, both running OS 10.4.6. I am trying to load fonts onto the machines but when I copy them to the users/shared folder they show up as Unix executable files. I use FontAgent Pro 3 and usually store fonts in users/sh

  • Insert default value into account in AP/Invoice service

    How I can insert a default value in account in AP/Invoice ? I try use a Formated Search this is an better way? declare @conta varchar(20) set @conta= '62298000' If  $[OPCH.DocType]='S' SELECT @conta  FROM [dbo].[PCH1] T0    WHERE T0.DocNum = $[$20.1.

  • Can each of our users play their own game?

    My boys each have an iPad, but only one can open a game at a time and when the other opens the game, they have to share the same place and stats. Do I need different Game Center accounts? Or different Apple IDs? Any suggestions? These games include C