Portal Session content in BSP

Hello,
My BSP inside an iView is located in the xRPM content. What I now try to achieve is, to hand over the chosen project-id from the portal to the BSP - iView.
request->get_cookies provides me with the cookie "sap-appcontext", which I think contains the portal session-id. Since BSP has it's own session-id, I somehow have to get the session - content of the portal, where I hope, the chosen project-id is stored.
Am I on the right way?
I would appreciate any help or suggestions.
Thanks in advance.
Daniel

<i>How can I register such an event inside xRPM-content without modifying the standard-source? Or how can I find out, if there's an event fired I could use?</i>
I see no real easy way. I have never seen the source code of xRPM, and know no developers inhouse to ask directly. Effectively portal eventing is just JavaScript code. To see if xRPM supports any events, why not look at the outputted HTML. Look for anything to do with EPCM, or search for events.
<i>It's hard to understand, why it's not possible to access session-information of the portal from a BSP started in the same page...</i>
What exactly session information do you wish to know. From my understanding, you have a BSP running inside the portal. Inside this BSP application you wish to know something. I assume not exactly session ids, but some other information from the portal. Maybe this helps us.
At the low level of HTML is might be easier to understand. The portal renders the HTML page, and then starts the BSP inside an <iframe>. The BSP does not know anything about the surrounding environment. Of course you could use JavaScript to walk up the dom (document.parent) and look at things inside the other frames. But keep in mind you are in the browser, and not on the portal server, not in the ABAP stack (where BSP is). So you can only look at rendered code. And this can (and will) change per SP.
At the end of the day it is all plain HTML in your browser, and this are what sets your limitations.
brian

Similar Messages

  • Can portal session cookies be used between two data centers

    OAS generates the following header information and session information for my application. However when I need to failover the originating OAS datacenter into my hot stand-by for maintenance or upgrades, the OAS in the other datacenter responds with a 503 web error. We are using Akamai's GTM to manage the liveness of the datacenter, so we would need the hot stand-by OAS portal in that datacenter to return a 302 error code. Is there some method that we can add to our portal application which would always return a 302 error code.
    See header information collected through wfetch. The 503 error is caused by the hot stand-by data center not accepting or recognizing the cookie. Both OAS datacenters are IDENTICAL in Oracle levels, application levels, web servers, portals and OS patches.
    resolve hostname "170.107.183.32"WWWConnect::Connect("170.107.183.32","80")\nsource port: 2182\r\n
    GET /portal/pls/portal/PORTAL.wwsec_app_priv.login?p_requested_url=%2Fportal%2Fpls%2Fportal%2FPORTAL.home&p_cancel_url=%2Fportal%2Fpls%2Fportal%2FPORTAL.home HTTP/1.1\r\n
    Accept: */*\r\n
    Accept-Language: en-us\r\n
    Accept-Encoding: gzip, deflate\r\n
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)\r\n
    Host: www.thomson-pharma.com\r\n
    Connection: Keep-Alive\r\n
    Cookie: ORA_WX_SESSION="10.225.8.30:80-1#2"; portal=9.0.3+en-us+us+AMERICA+3D66674E7EED0801E04400144F41424E+BBAA98EEB32D58C086231A8D6CBE2E5D402D89B0E79D83A18C668BB0CA7417B4044DEA389C8B50DD37D9272A24B4753B22F29978861DE14503F8B9BEDC2014654B26A434CF074F4D8749B88610ADADF5084A90ADBF749E2A; DATACENTER=EAGAN\r\n
    \r\n
    HTTP/1.1 503 Service Unavailable\r\n
    Cache-Control: private\r\n
    Content-Type: text/html\r\n
    Set-Cookie: ORA_WX_SESSION="10.237.138.33:80-1#2"\r\n
    Set-Cookie: portal=; expires=Wednesday, 27-Dec-95 05:29:10 GMT; path=/\r\n
    Connection: Keep-Alive\r\n
    Keep-Alive: timeout=5, max=999\r\n
    Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server OracleAS-Web-Cache-10g/10.1.2.0.2 (N;ecid=208440262161,0)\r\n
    Content-Length: 710\r\n
    Date: Fri, 26 Oct 2007 14:58:07 GMT\r\n
    \r\n
    Thanks -John

    Hi John,
    This question is probably more appropriate in one of the Portal forums, but perhaps you can take a look at the information in section C.5 Configuring the Portal Session Cookie in Appendix C of the Portal Configuration guide.
    Here is a link: http://download.oracle.com/docs/cd/B14099_19/portal.1014/b19305/cg_app_c.htm#sthref1907
    Regards,
    Peter

  • Portal session still exist in child window after logout main window

    Hello community,
    here's a short summary about our business scenario:
    We use performance management (SAP HCM) within our SAP ERP 6.0 and SAP NW Portal 7.0.
    With the application performance management we use some bsp- and webdynpro-iviews from the business package MSS.
    Some of these applications opens a second portal window (child windows) for doing the work.
    If the user logoff only the main portal windows with the "logout"-link and also close this window (e.g. he forgot to close the child windows) the user have the possibility to make changes (e.g. in the opened performance management document) in the child window.
    This behavior isn't allowed according our company principles. If the user logout on any portal window (also at creating of new portal sessions with STRG+N) all the sessions of the user should be terminated.
    Which possibilites do I have to solve this problem?
    Thanks for your help!
    Kind regards,
    Bernd

    Hello,
    yes, I found a solution.
    In the iView-parameter you can put in the following value:
    PortalSessionID = <ClientWindowID>
    This value ensures that in the opend window no changes are possible.
    In the opend child window there is now a pop up to log on to the ERP-system.
    Kind regards,
    Bernd

  • How to get Portal Session Time out values of CRM system

    Hi,
    I had a requirements to pass the Portal session Time out value to the External Configurator. How can I get that value. Is there any Function Module to get this value.
    If you go to SMICM and select services, we see HTTP details. I need to get the Time out value what its showing there. How can I get that value. Is there any FM to get that value or Is there any existing code.
    Please let me know if you need any further information.
    Thanks.

    Hi
    The session time out value for CRM WEBUI is controled by parameter RDISP/PLUGIN_AUTO_LOGOUT.
    Its value is got by BSP.
    Please check in SE80 BSP application CRMCMP_IC_FRAME view hideenview.htm.
    If you want to know the session time out value for portal, I am afraid that you need to raise questions in EP's forum.
    Best regards,
    Maggie

  • How to get Portal Session Time out values.

    Hi,
    I had a requirements to pass the Portal session Time out value to the External Configurator. How can I get that value. Is there any Function Module to get this value.

    Hi
    The session time out value for CRM WEBUI is controled by parameter RDISP/PLUGIN_AUTO_LOGOUT.
    Its value is got by BSP.
    Please check in SE80 BSP application CRMCMP_IC_FRAME view hideenview.htm.
    If you want to know the session time out value for portal, I am afraid that you need to raise questions in EP's forum.
    Best regards,
    Maggie

  • Closing and Killing Portal Session Error

    Hi Experts,
    I'm getting some problems with my killing sessions. We did some implements with Integrated Planning and repots are running in the portal. I have noticed a dramatic low performance in my portal and I realized that sessions are not closing in the portal. I've been trying log our from the portal session and the session still alive (I seem them in SM04 transaction). How Could it be possible if I'm logging out properly?..... Is there something I've been missing???? What else Could I do for fixing the problem???
    Thanks for your help (Any help would be rewarded).
    David

    Hi,
    As far as understand you are running reports from an ABAP backend system in the portal and the sessions in the ABAP backend system are not closed by the portal.
    Which technology are the reports based on (BSP, transaction) ?
    It seems to me the Distributed session management(DSM) in the portal is not working  and therefore not triggering the closing of the sessions in the backend when the user logs off or navigates to another page.
    (it might also be that the BSP is defined as stateful )
    See http://help.sap.com/saphelp_nw04/helpdata/en/ca/a9a7408f031414e10000000a1550b0/frameset.htm for more info on DSM
    Cheers
    Dagfinn

  • How to use Portal SSO with existing BSP application

    Hi all,
    we run SAP EP 6.0 here and have a single start BSP page of
    an application integrated with the SAP appintegrator for BSP. The rest of the existing BSP application still uses
    the login functionality based on CL_BSP_LOGIN_APPLICATION
    and is not integrated in the portal.
    Problem: If a user directly accesses one of the "old" BSP pages, he should be redirected to the portal to auth. him via SSO and afterwards the original BSP page with all its parameters should be processed.
    How to deal with that? Is there a similar mechanism like with the BSP_LOGIN_APP in between for the SAP EP?
    Thanks for your help!
    -RAINER-

    I think that doesnt solve the problem.
    I have 2 systems: SAP ECC with all BSPs and the portal on another system. So I have to entry points: Via portal using the appIntegrator BSP or directly to the ECC.
    As-is: If the auth. for the BSP appl. fails, the user is re-directed via the error page given in the service (SICF)
    to a BSP login app. and from there to the requested page.
    No portal in this concept.
    Must-be: A user is still able to directly access a BSP on the SAP ECC by entering the URL in the browser. It's not a must entering via the portal first.
    So when the login failed on the ECC (no SSO ticket), he should be redirected to the portal for getting his SSO.
    After he signed in successfully the user will be forwarded to the BSP page he entered in the browser the first place.
    I can't see a way to use the URL iView. I am thinking of simply changing the login mechanism of the BSP using the portal login functionality.
    The link you gave me offers an implementation of CL_ICF_SYSTEM_LOGIN. Any ideas?
    Regards,
    -RAINER-

  • How to set a variable in portal session using web dynpro java.

    Hi,
    I have created a web dynpro application, which is running inside portal. I have created a role called "R1". Inside role R1, i have created 3 workset W1, W2 and W3. and inside each workset i have some pages and iviews.
    My requirement is when user logins to the portal , and when he clicks on role R1 for the first time, a login page should come (so that we can do revalidation), and when he enters his password again in that login page , then only workset W1, W2 and W3 should be visible/accessible to him and after successful revalidation, if he clicks again on role R1, in that particular portal session, than that login page should not come.
    for this, i thought i will set a variable in portal session, whenever user successfully revalidated himself, and if after successful revalidation he clicks again on role R1, i will check in doinit method of webdynpro whether variable is set or not (which i already set on successful revalidation), and if it is set then i will do Donavigation else i will present login page to the user.
    Can anyone tells me how to set a variable in portal session using web dynpro java.
    thanks
    Arush

    Hi,
    Try this:
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, key, value)
    WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, key)
    Ex:
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE,"Key1","Value1");
    String value1=WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"Key1").toString();
    /people/william.cui/blog/2007/02/12/sharing-session-context-between-parent-and-external-windows-running-on-same-host
    Regards,
    Charan

  • How to determine portal user in a BSP

    Hi,
    is it possible to determine the current logged in portal user in a BSP iView? If it's possible, how?
    regards

    it is possible.
    1. if spalogon ticket based SSO, then with BSP application, sy-uname will hold the user id.
    2. if the sso is based on user mapping (different logged on user in EP and different user id for logging on to ABAP system)
    check this link where i have explained on how to do this
    Re: EP user credentials as attributes of BSP
    in the bsp application iview application parameter
    pass
    you need to use
    epuser=<User.UserID>
    you can also use
    epuser=<User.LogonUid>
    then in the corresponding bsp page have page attirbute with auto check with the name epuser. now epuser will  hold the ep logged on user
    Regards
    Raja

  • Missing Folder in "PeopleTools Portal Structure & Content"

    Greeting,
    Previously
    i have imported a project(created by other developers) and build it, it will automatically exist in fronted.
    But this time i have no luck, i do the same step in another enviroment and it's not exist in frontend, i try to goto
    "PeopleTools > Portal > Structure & Content"
    i realized that my folder for the project is not there, so i try to create it
    But soon i realize that i cant create the folder (error: not unique name)
    It seems like my folder is already exist but just not show in
    "PeopleTools > Portal > Structure & Content"
    What step should i take to bring out my folder?
    Thanks

    If you create a folder, then migrate that folder as part of a project, then it might not show up in Structure and Content in the target system. If that happens, usually deleting app server cache, or waiting 24 hours will clear it up.
    I avoid this problem by migrating the parent folder even if it hasn't changed. By migrating the parent folder, PeopleTools will invalidate the cache for the parent folder that exists in the target, causing it to reload all child folders and content references. This trick works every time.

  • Portal Session Problem

    Hello all!
    I am trying to log-on to my portal with two different users parallel.
    Example:
    1. Open Internet Explorer -> Portal -> Logon as Administrator
    2. Open Internet Explorer once again (NOT String-N) -> Portal -> Logon as another user
    The problem is, that if I am opening the second Internet Explorer, he automatically logs-on as the Administrator. He is using the first portal session.
    I also tried this with the moziall firefox. Same problem.
    Does anybody know how to solve this problem?
    Thank you in advance.
    Best regards, Patrick.

    Hi Patrick,
    Logon with the admininstrator and open the <u><b>personalize</b></u> option in the masthead.
    Check the option <u><b>WorkProtect Mode</b></u> and ensure that the option <u><b>Use default portal setting</b></u> is selected.
    Thanks,
    Trikanth

  • Portal Session Timeout and Logon Ticket Timeout

    Hi All,
    Can anyone give me answers to the following:
    - If my Portal session times out, but my logon ticket is still valid, will I lose my session data?
    - Is there any way of determining the size of a users session information in memory (or the size of all user sessions in memory). I can see in the Monitoring service in Visual Admin the number of sessions but not their individual or total size.
    I'm using EP7.
    Cheers,
    Steve

    Hi,
    the Logon Ticket is only used for SSO between the portal and the integrated system. Your session data is stored in the session. If the session times out or gets closed, the session data is lost.
    br,
    Tobias

  • Portal Session gettable?

    Hi all!
    Is it possible to get the IPortalComponentRequest details in a webdynpro application. I don't want to pass data through the Application Parameters in the Portal.
    In short, Can I read directly from the Portal Session.
    Best regards,
    Andreas

    It seem that you do not add necessary libraries to your project.
    If you are creating a Development Component, add reference to DC SAP-J2EE/com.sap.security.api and select the only public part in this DC.
    If you are creating stand-alone WD project open Project Properties -> Java Build Path and add external jar:
    <path-to-nw>eclipse\plugins\com.sap.tc.ap\comp\SAP-JEE\DCs\sap.com\com.sap.security.api.sda\_comp\gen\default\public\default\lib\java\com.sap.security.api.jar
    This is a built-time support for security classes.
    For runtime, also add a reference to classes at runtime. Open Project Properties -> WebDynpro References -> Libraries and add line com.sap.security.api.sda
    Disclamer: I'm not sure regarding latest item. If it doesn't work, try to add instead Interface Reference to security_api
    Regards,
    VS

  • Portal session Timeout

    Hi,
    I want to increase the portal session timeout to 2hrs. We have 2 Portal server which are load balanced. The configuration is as below:
    Portal Version: 10.3.0.337003
    .NET Version: 2.0
    OS: Win 2003 Server
    Database : Oracle 11g
    IIS:6.0
    On both the server I have edited the session time out parameter corresponding to the file as mentioned below:
    Portalconfig.xml :
    <setting name="BrowserLoginTokenExpiration">
    <value xsi:type="xsd:integer">120</value>
    </setting>
    BEA Web.config
    <sessionState cookieless="false" timeout="120" />
    .NET Web.Config
    <sessionState timeout="120" />
    But still the we are not able to achive 2 hrs of session timeout. Do we have to make entry in .NET machine.config? Please let me know if thier is any other file where changes is required?
    Also in lower environment, we have our portal installed on .NET 2.0 framework ( only one instance of portal server ), we are able to achive 2Hrs of session time out by modifying the state management session time out value ( default website-> properties->asp.net tab->edit configuration->state management tab)
    Please help me!!
    Edited by: Oracle WCI on Oct 10, 2011 1:43 PM

    As per the documents share by oracle support..only place in WCI 10gr3 (10.3.0.1) and IIS where we set timeout value is State Management tab (default website->portal ->properties->asp.net->edit configuration-state management)..we have this valye set to 2Hrs (120 min) on both the portal server ( load balanced)..but still portal is getting time out after 1 hrs..I am not sure which external factore is limiting this to 1 hrs..
    both portal server are load balanced and IWA is implemented...
    Any light on the external factor line SSO setting, Load balanced ..etc will be higly appriciated..Please help!!

  • Portal Session Timeout Setting

    There is a JServ session and a portal session. I know how to control session timeout and session clean up frequency in JServ - that's in zone.properties. But, I dont know how to set timeout for portal session, i.e., I'd like to have the user be forced to login again when he has been idle for 15 mins - and only if he has been idle. Jserv session settings are not sufficient for this because Portal has it's own session that must time out.
    How to set this timeout value (I'm using my own provider which has a timeout setting in zone.properties and includes a bunch of JSP portlets)? Also, is there a clean up thread for which the frequency has to be set?

    I've contacted metalink weeks ago, and this is NOW, a know bug...
    Incredible... Oracle just DO NOT TEST their products... Even a simple SESSION timeout do not work. Also, if I click back after "I log In and Log out" ... Session still up without have to login again!
    BUG 2442268

Maybe you are looking for