Implementing Log Off in Custom Page

Hello Experts,
In our Portal Application we have a JSPDynpage which hides the masthead and shows its content. We have to  implement a Log Off in this page. Can any one help me in implementing either a custom code for Log Off or implement the same Log Off code from Masthead without displaying the masthead in this view.  If you experts can help it will be great.
Thanks
Satish

Hi Satish,
You can download com.sap.portal.navigation.masthead.par.bak from filesystem:
/usr/sap/<SID>/J<Instance number>/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/deployment/pcd/
OR system administration >> support
then extrat the par file and search the JAR files in lib folder. Extrat the Jar file, there is class files. Now you need decompiler to see the SAP Standard Logoff Functionality which have implemented in SAP portal.
You can use this Java code or modify as per  your requirement
Hope it helps
Regards
Arun

Similar Messages

  • Computer logging off after quitting Pages

    About one third of the time when I quit Pages, my computer screen goes blue and logs itself off as if I'd logged off and back on again.
    Anyone else having this problem? It's making me crazy!
    Thanks in advance…

    Try resetting the NVRAM. Directions here:
    How to Reset NVRAM on your Mac - Apple Support
    Note: it is a good idea to provide details about your computer, e.g. model number, and OS version when you post a question. This information is usually necessary for a complete answer.

  • While on my td bank secure site i log off then press the back arrow my secure page that i closed opens up.when i use internet explorer the same page doesnt sho

    when i log off my td bank secure account page with the td log off botton i get a new td page. if i press the back arrow on the address bar the secure page i just closed pops up. when i do the same witn onternet explorer a generic td bank page home page pops up NEVER an account page with secure info shown. when this happens every time i dont know if i have logged off the secure page. i close my online browser[now firefox] to be sure the connection is broken but is the secure page open to any kind of breach? i am using firefox due to concern about intternet explore but i know on explorer when i log off td bank secure page i was on i can not access that page again unlees i login ,on firefox i press back arrow on address bar and the secure page i logged off shows up.i feel this is an important issue and must be addressed. thank you

    Hi grdy83,
    What are your cookie settings?
    *[[Enable and disable cookies that websites use to track your preferences]]
    *[[Permissions Manager - Give certain websites the ability to store passwords, set cookies and more]]
    You can delete all history when you exit Firefox, but it seems odd that a secure page that should expire is still accessible. It may be a timed expiration, but check the third party cookie settings to make sure it is not allowed to be saved.
    I hope this helps prevent this from happening again.

  • Specify log off page for each system in WebUI

    I am trying to define log off URL for the CRM WebUI. I have been able to define the URL on the technical profile. The problem for me is that the url points to a system specific page. In other words, when I define in the development system that I want to go to the logon page when I log off I use the URL of that points there. When this customizing later is transported to the quality system and later to the production system, the log off URL still points to the log on page of the development system.
    Is there any way to specify that this url points to the log on page of the system that were logged off?

    Hi Erik,
    this is not possible in the SAP standard AFAIK.
    The URL in the customizing of the technical role profile is read using the method CL_CRM_UI_TP_SRV->GET_URL_PART( ). In order to implement your requirement you could, e.g. implement a custom table containing the client, system name and URL. Additionally, you could then enhance CL_CRM_UI_TP_SRV->GET_URL_PART( ) using an implicit enhancement spot to read this custom table an return the entry for the system ID if present and the default customizing otherwise.
    Best,
    Christian

  • Custom Masthead - Log off

    hi,
    I have developed a custom masthead for our portal. Instead of Log off being called in the functional area. I have inserted that in the separate area where the log off has to appear.
    The line looks like
    I have given log off text in between <a> tag and the href points to "/irj/portal" and the javascript that is callled is openLogoffMsg
    when I preview this code running from NWDS, it is logging off. When i add this to framework Page and click on Log off URL, the pop up comes and when i click 'ok', it is refreshing and staying in the same page and not getting logged off. What should I do to get logged off and redirect it to the logon page.
    Thanks & Regards,
    Ganesh N

    Hi,
    Is the issue logoff direction to logon page, so that if a user logs off from portal, he will navigate to portal logon page (hostname:portnumber/irj/portal)?
    If this is the problem you can change the redirection of the portal logoff in the following way:
    In the config tool navigate to:
    cluster_config --> system --> custom_global --> cfg --> services --> com.sap.security.core.ume.services --> Property Sheet properties.
    switch to edit mode and change the property ume.logoff.redirect.url with the custom value "http://hostname:portnumber/irj/portal".
    After saving your changes restart the system.
    Regards,
    Yasar

  • Going to a particular page when logged off

    How can I control what page to go to when I hit the logged off icon or link? I know how to set the default page after logging in, but what I don't know is how to set the default logged out page?
    Can anybody help me with this?

    If you want everyone to go to the same page when they log out, you can set a default page for the public user by editing the portal user profile for the PUBLIC user. You set the default page for this user and upon logout, that is the page that is navigated to.

  • Best practices on how to implement logging in custom application

    In the Enterprise Manager it is possible to display/browse the content of different log files generated by the application server modules.
    I have some custom web applications which currently use the log4j framework to write to log files. Is it possible to make these log files accesible for the Enterprise Manager ?
    Or what is the best practice on how to implement logging in custom applications which can be browsed in the Enterprise Manager (I do not want to use system.out)

    I thought that this could be done. An ex- colleague did this - but he didn't tell me how to solve this.
    But as it just took 10 minutes to solve this I believe it's fairly easy.
    cu
    Andreas

  • Blank page opens and not able to log off

    Hi All,
    I am using MSS. There are 2 issues.
    1) One of my user has received a task in UWL. When he tries to open that he is getting a blank page. In R/3 the structure and all the things are fine.
    2) Also when he clicks the log off button dialogue box prompts to select yes or no , he gave YES but still it not getting logged off.
    I tried deleting cookies , temporary files and turned compatibility settings on to " "Display all websites in Compatibility View" but of no use.
    Please suggest on this.
    Thanks!
    Swarnaprakash

    Hi Swarnaprakash
    Might be some problem with browser, try accessing with the compatible browser and then check it. check the browser compability in service market place PAM. http://service.sap.com/pam
    Also check the default trace log file and search for the userid
    Best Regards
    Arun Jaiswal

  • Log off button in a web report (bw 3.5)

    Hi,
    I'm trying to add a log off button in my default web template, but it seems not working properly.
    My web template, including simple query result, without user input variable :
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_1"/>
             <param name="QUERY" value="ZTESTGC_QUERYLOGOFF"/>
             <param name="INFOCUBE" value="SUZ_C01"/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="ZTESTGC_LOGOFF"/>
             <param name="STATELESS" value="X"/>
             <param name="USE_PAGE_WRAPPER" value="X"/>
             TEMPLATE PROPERTIES
    </object>
    <HEAD>
          <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
    </HEAD>
    <BODY>
    <P><A class=SAPBEXBtnStd title="Log Off" href ="<SAP_BW_URL CMD='LOG_OFF'>&sap-sessioncmd=cancel"><nobr> Log Off</nobr> </A></P>
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TABLE_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             ITEM:            TABLE_1
    </object></P>
    </BODY>
    </HTML>
    When I click on my button, i'm redirected on a blank page but :
    - if i click on the back browser (IE6) button, I see query results again, without see logon screen.
    - if i stay on the blank page and i relaunch my web template using WAD button 'Execute in browser ...' it doesn't ask me my logon information
    Why ???
    Thanks to help me,
    CG.

    Hi,
    try something like this:
    button, which calls javascript function
    function logoff()
    // releases the current session and calls the log out page
    SAPBWOpenURL(SAP_BW_URL_Get()+'&CMD=LOG_OFF&REDIRECT_URL=/sap/bw/Mime/Customer/WebApplications/htm_logoff.html');
    it works correctly.If you press the button you will be at first loged off and after that redirected to htm_logoff.html (it is a simple html site, which you have to build)
    Regards
    Erwin
    Edited by: Erwin  Buda on Jan 9, 2009 3:31 PM

  • Run time error occured while clicking the Log off

    Hello Experts,
    I have customized masthead file. In the masthead, when i click the log off link, the pop-up window will showing the Runtime error message. Its not working properly. I didnt make any changes in log off method. I traced the error,
    <%if (!isPreview){%>
              if (EPCM.getUAType() == EPCM.MSIE)
                   if(EPCM.getGlobalDirty())
                         // unsaved data on the page, display modified dialog
                        var val = window.showModalDialog('<%=GetLogoffConfirmUnsavedMsgURL(componentRequest)%>', '', '<%=LOGOFF_CONFIRM_MSG_ARGS_IE%>');
                        if (val == 'logoff')
                             disableWorkProtectCheck = true;
                             logoff();
                   else //no unsaved data
                        // data saved, nothing get lost on the page, display normal dialog
                      var val = window.showModalDialog('<%=GetLogoffConfirmMsgURL(componentRequest)%>', '', '<%=LOGOFF_CONFIRM_MSG_ARGS_IE%>');
                      if (val == 'logoff')
                          logoff();
              else
                   if(EPCM.getGlobalDirty())
                      window.open('<%=GetLogoffConfirmUnsavedMsgURL(componentRequest)%>', '<%=LOGOFF_CONFIRM_WINDOW_NAME%>', '<%=LOGOFF_CONFIRM_MSG_ARGS_NS%>');
                   else
                      window.open('<%=GetLogoffConfirmMsgURL(componentRequest)%>', '<%=LOGOFF_CONFIRM_WINDOW_NAME%>', '<%=LOGOFF_CONFIRM_MSG_ARGS_NS%>');
         <%}%>
    In this code having if condition if(EPCM.getGlobalDirty()) is set as true means, then only properly executed and it shows the Log off message. In my part it goes to the else part. Then it shows run time error message.
    I cannt able to find out the solution.Pls help me in this regarding.
    Regards
    Prakash T

    Hi,
    see if running SFC /Scannow helps. This basically restores missing/corrupt system files.
    Click Start/Run and type CMD
    Type SFC /Scannow
    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe):
    http://support.microsoft.com/kb/310747/EN-US/
    Please Reward Points if Helpful.
    Kind Regards,
    Vamsi.

  • Want to know the number of user logged off

    Hi
    Using Mii server, how to check how many user where logged off.
    Regards
    Rizvi

    Hi,
    You need to write customized java code in your development. Set the session of the user logged in and store. And get these details from the JSP page.
    Also in MII logs you can find these details.
    http://localhost/Lighthammer/Illuminator?service=SystemInfo&Mode=SessionStats
    Using this you have to play around the code.
    -Suresh

  • Log off issue in portal

    Hi all,
    Iam having an requirement on BSP with 2 pages and in first page i have certain input fields
    and search help for customer.
    The issue is that the  user will click the search help button and pressess the log off button on the
    workforce portal. After pressing the log off button the user able to come back to the initial screen
    but the search help screen for customer is not getting closed.So my requirement is to close the search help screen as soon as the user pressess the log off button.
    Can anyone help me out in this !...
    Thanks
    Nehru

    Hi All,
    Can anyone help me out in this issue.
    Anubhav do you any suggesstions on this.
    Regards,
    Nehru

  • Popup action resulting in Log Off

    Hi All,
    We have created one customized t-code which we gave as Quick Link in Portal. In the process, we have a popup window. When clicked Yes, it'll change some details. This is working fien for us. But only for one user this is not working. When he clicks Yes, page is Logged Off Succesfully. But strangely, when I use his login details and test, it's comign fine. Only in his system it's erroring out.
    Is there any specific reason for this? Kindly suggest.
    P.S.: Please suggest me if this is not the correct forum.
    Edited by: Srinivas Kalluri on Mar 1, 2011 5:57 PM

    Hi Srinivas,
    Check if his browser accepts cookies from SAP backend and/or the user access portal by FQDN.
    Best regards,
    Alexander Zhukau

  • SAP Web Gui does not completely log off.

    Hi Experts,
         I am having trouble with our web gui, I can log in without a problem and when i try to log out there is message shows that i am logged off but when i refresh the page it automatically logs in. It would only go back to the log on page if i exit the whole browser window. i am using mozilla for my web gui. any help on this matter would be much appreciated. 

    Hi
    Which version of Web browser ?
    and also refer the SAP Notes
    1777513 - WebGUI logoff does not work
    1903478 - Session remains open after the logoff
    BR
    SS

  • Log off problem in integrated ITS

    Hi,
    our cancel button for ending the application with an external ITS works fine and the exitURL which is deposit in the service file will be shown.
    But with an integrated ITS it doesn't work. I know that this exitURL doesn't work in an integrated ITS.
    So I left a redirect URL in the SICF > ErrorPages > Log Off Page > Redirected URL
    but nothing happens after clicking the cancel button. The browser works and works but the old screen is still seen. What's wrong? Why the page will not be redirected to given Url?
    Can anybody help me?
    This works:
    wgateURL(~command="logoff", ~exitURL="http://www.sap.com")
    but we need a standard exit like described above and I think the way above should be right.
    Thanks, Susanne

    This was discussed recently.
    check out this thread
    Close the IE page on click of a button in the transaction
    Regards
    Raja

Maybe you are looking for

  • Do i need to enter my apple id every time i download an app

    do i need to enter my apple id every time i download an app????

  • WARNING:Could not set the asynch I/O limit

    Every night database generate trace files with WARNING below Does anybody knows what this mean? WARNING:Could not set the asynch I/O limit to 252 for SQL direct I/O. It is set to 200 Oracle Version: 11.1.0.7 AIX 5.3

  • Data base creation

    hi, I am new with data bases in Java. I need to build a servlet that saves data in data base. I would like to use mySQL. I really don't know nothing about mySQL and JDBC, only that it is free and it uses SQL (which I knows). What should I know and ha

  • E18, google hangouts and virtual desktops

    I have a problem after upgrading to e18. When I receive a new message in the google hangouts (chrome extension) the window to change desktops pops up highlighting the desktop with that particular hangout. In e17 it worked all fine. I clicked that des

  • Formula for calculating aggregate percentage and percenatge of gender

    hi all i have a sp from which i get result columns  gender,percentage,studentcount,year my sp is like this.. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[usp_GetState]') AND type in (N'P')) DROP PROCEDURE usp_GetState GO SET AN