Skip to Content
author's profile photo Former Member
Former Member

IAuthentication forceLogoffUser(req,res,url) method not redirecting to URL

Hi,

I´m using the IAuthentication forceLogoffUser(req,res,url) method to implement a logoff from SAP Portal but the page that is redirected after the execution is not the one that I´m sending in the Method.

Also just the IFrame where I´m running the JSP into the Portal is been redirected to the wrong Page not the entire Page.

Here my code:

%@ page language="java" %>

<%@ page import="com.sap.security.api.UMFactory" %>

<%@ page import="com.sap.security.api.IAuthentication" %>

<%

UMFactory.getAuthenticator().forceLogoffUser(request, response,"http://vsededb.vitro.com:50000/RH_LoginKronos/login.jsp");

%>

Thanx in Advanced!

Kind Regards,

Gerardo J

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 12, 2008 at 03:00 PM
    12

    Hi,

    Yes, because the EP takes the page URL from the UME property ume.logoff.redirect.url

    You can use the method forceLogoffUser effectively in non-EP code, e.g. in a standard J2EE application.

    Kind regards,

    Tsvetomir

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Sigiswald Madou

      Hi Sigiswald,

      How have you been? I hope evewrything is great on your side.

      I have been analyzing the process and how it works and I think everything is going well except the part of the logout_submit that you mention on the last Post, I see that the Logout Component is just sending a Redirect to /irj/portal, and when sending the logout_submit=true to /irj/portal actualy triggers something that I guess that deletes the ticket or something like that, I have checked the process implemented with out sending the parameter to /irj/portal, with the DSM Logger & Process Troubleshooting and as far as I can see it does the same thing as the Standard, but something is weird If I click on a role that access some application and then use the logoff on the modifyed Zmasthead then it triggers as what I can asume the delete of sessions and other processes and when I try to access again /irj/portal then I get the login page, but If I just login into the portal and click the logoff on the modifyed Zmasthead then it does not trigger the end of sessions, and if I go to /irj/portal then it opens with the user I last loged into the portal.

      I asume that the logon.par contains the components that receive the logout_submit parameter, do you know which component catches it? I would like to see what it does to see if I can implement something on the personalized code.

      Here I paste you one of the out puts I get when attaching the DSM Logger & Process Troubleshooting when accessing the modifyed ZMasthead accesing some applications first.

      -


      DSM Terminator [ LOGOFF ]

      Single URL=/webdynpro/dispatcher/sap.com/pb/PageBuilder;jsessionid=(J2EE7791200)ID1091483450DB10210460149072206946End?sap-ext-sid=z8qRtiPhAXWAsZd0RHNbOw ZgaxKYDxN2tEYPrN8Za1hw &sap-wd-cltwndid=WID1216784448479&sap-sessioncmd=USR_LOGOFF&~SAPSessionCmd=USR_LOGOFF&SAPWP_ACTIVE=1&sap-ep-tstamp=1216784644001&dsmguid=1216784658447

      -


      .If I dont access any App I got this and if I go next to /irj/portal I access with the user that I got loged in before clicking the modifyed logoff

      -


      DSM Terminator [ LOGOFF ]

      Finished ( 0 request(s) distributed, 2ms)

      -


      What do you think?

      Thanx in advanced.

      Kind Regards,

      Gerardo J

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.