Session Management in BSP applications

Hello,
I habe been developing the following application to send E-Mails from Outlook to SAP WEB AS Abap Stack:
- I have created a COM-Addin in MS Outlook
- When the user clicks on a button, that I have created, the currently marked E-Mail-Message is read
- The E-Mail-Information is analysed
- MS Internet Explorer is dynamically opened by my Outlook application
- A html form is dynamically created
- html form is posted dynamically to a BSP-application
-> Basically what I have is a HTML form, that is posted to a BSP application
I am facing the problem that Web AS is mixing up different sessions:
- I have no user specified for my BSP application, that means whenever a client visits my page a login popup should appear
- I have defined the first page of my web application as stateless
So what I expected was, that whenever my html form is posted to the Web AS, I get a logon popup, and everytime my web page is called a new session is started
Actually MS Internet Explorer and my BSP Web Application are acting differently:
When I post the html form for the first time, the logon popup appears and everything works fine
When I post the html form for the second time WITHOUT CLOSING THE FORMER INTERNET EXPLORER INSTANCE, the LOGON POPUP DOES NOT APPEAR, and the BSP application is using old, wrong data from the former html form
When I CLOSE ALL INTERNET EXPLORER INSTANCES, THE LOGON POPUP APPEARS, and I get the correct information for my BSP application
->
Whenever I have already sent a html form to the application and do not close all internet explorer instances, my BSP application mixes up old data
Whenever I have already sent a html form to the application and CLOSE all internet explorer instances, my BSP application is working fine.
I have the following settings for my BSP application in transaction SICF:
- Logon Procedure: Stanadard
- Anonymous Logon Data:
     Client: 301
     User: [blank]
     Password: [blank]
Does anybody have an idea how to get my application to work correctly?
- I cannot change internet explorer settings as I have many clients and no authorization for that
- I can change (maybe meta data?) the html form
- Are there any settings of the BSP application that I can change, so that my application works fine
Thanks for your help in advance!
Andreas

Hello Sebastian,
Thanks for your answer!!!
Unfortunately I cannot close the brower window via javascript, as my BSP application is not simply one page reveiving the form and sending one response page, but the BSP application consists of more pages (providing search functionalities,...).
I have tried the following:
- I have opened a new Internet Explorer application "IE-application1"
- I have started my MS Outlook application which (dynamically) opened a new Internet Explorer "window2".
- The Mail was saved to SAP
- I closed the "window2"
- I sent another mail to SAP via "window3"
-> SAP was still remembering the session of "window2" and mixed up the session (session info obviously was hold in "IE-application1")
I did not fully understand your answer refering to BSP Application "system" and its page "session_single_frame.htm" together with the source code of "session_single_frame.htm".
What I need is, to tell my startpage "index.htm" the following: Forget every cookie and session and whatever else you have had until now, take the input values of the html form and process them. Is this possible with "session_single_frame.htm"?
Andreas

Similar Messages

  • Closing Server Session of a BSP application deployed on the Portal

    I have a BSP application deployed on the Portal v. NW07.  This BSP application is a tab sitting besides other applications such as My Staff of MSS.
    The BSP sets a lock like "CALL FUNCTION 'ENQUEUE' " and the backend system is SAP R/3 4.7. 
    QUESTION: How can I get the server session to terminate when the user navigates from the tab corresponding to my BSP application to the other tabs. 
    Currently, the session doesn't even close when I logoff completely from the Portal.  This BSP used to be deployed to users alone within the
    IE browser and I was able to handle session management using JavaScript code similar to what's in page 'session_single_frame.htm' of BSP 'SYSTEM'.   However, when deployed to the Portal, that piece
    of code doesn't seem to do anything.
    "Supports Portal Integration" is checked and the BSP application is stateful.
    Thanks in advance for your help.
    Achille

    for managing the backend session, all you have to do at the BSP app level is to set the supports portal integration flag, so that it generates the domain relaxation scripts.
    it (ending backendsession) is the job of portal's DSM terminator. More on this can be read from http://help.sap.com/saphelp_nw04/helpdata/en/ca/a9a7408f031414e10000000a1550b0/frameset.htm

  • HttpSession - BSP Application

    My experience is Java and J2EE. To pass data between JSPs, Servlets in J2EE environment you use Request or Session. I would like to use similar concept alongwith Application Integrator. Is there anyway in BSPs to set the data to the Session from a BSP application? I am trying this feature so that I can pass data from a CRM BSP Application to say an iView that gets data from a non SAP Application.
    Any help appreciated.

    Hi,
    Have a look at note 598860  the browsers supported in BSP
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_bsp/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d353938383630%7d
    If you are doing everything on your own, check the following for cross browser CSS:
    http://www.utoronto.ca/ian/books/xhtml2/exerpt/css-4a.html
    http://friendlybit.com/css/cross-browser-strategies-for-css/
    http://www.richinstyle.com/masterclass/crossbrowser.html
    Eddy

  • Issue with : Stateful BSP Applications: New State Management Option

    Reference:weblog by Thomas Jung -  /people/thomas.jung3/blog/2004/11/09/updated-stateful-bsp-applications-new-state-management-option
    I see a comment by one user to send the complete code... I am not sure what else can be sent   - try it out rather than getting spoon-fed. - getting offline - sorry...
    I had two issues with this ITSM way of session handling.
    First - if you are using an SP42 environment, check CL_BSP_RUNTIME=>ON_SESSION_CMD() to see if CANCEL is defined as an option. If not make sure that you use &sap-sessioncmd=CLOSE" instead of the &sap-sessioncmd=CANCEL" . If CANCEL is not defined , it will give you shortdumps...
    Second - when I closed the window, the session was not terminated. I used onbeforeUnLoad="exitBSPApplication(); instead of onUnLoad="exitBSPApplication(); and it worked fine. Not sure if it has any other issues.
    But now I am facing a new issue... all but one application is not ending... I have no clue on why this is happening.. I am still checking..
    Thanks Thomas, you are the best, as always...

    Thanks for checking the code in your system.
    After some investigation, I found the behavior as explained below.
    If the actual url has any fields passed as parameters, e.g.. /default.htm?var1=a&var2=2 ...
    - if I use CANCEL as the option, a shortdump is created and the session is not closed. if I use CLOSE, Session is terminated and no shortdump happens.
    If the actual url does not have any parameters, e.g.. /default.htm ...
    - CANCEL does the work, but CLOSE does not exit the session.
    In my applications I used request->get_form_fields to see if there are any parameters, and if there are, then I use CLOSE as the option and else, I use CANCEL. So now, the session
    management works beautifully...
    There is a good chance that I am doing something wrong here too.

  • What is the difference between Session timeout and Short Session timeout Under Excel Service Application -- session management?

    Under Excel Service Application --> session management; what is the difference between Session timeout and Short Session timeout?

    Any call made from the API will automatically be set to the “Session Timeout” period, no matter
    what. Calls made from EWA (Excel Web Access) will get the “Short Session Timeout” period assigned to it initially.
    Short Session Timeout and Session Timeout in Excel Services
    Short Session Timeout and Session Timeout in Excel Services - Part 2
    Sessions and session time-outs in Excel Services
    above links are from old version but still applies to all.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How to deal the timeout session in BSP application

    Hello everybody,
    inside a BSP application, I want to inform the user that he is near to reach the timeout of its session.
    So I wonder how to know the lifetime of the session and how to calculate the time from its connection.
    Anyone of you can help me on his topic?
    Thanks in advance.

    Starting point: <a href="/people/mark.finnern/blog/2003/09/24/bsp-in-depth-confusion-between-stateless-stateful-and-authentication">BSP In-Depth: Confusion between Stateless, Stateful and Authentication</a>
    The trick will be to after each roundtrip set a JavaScript timer tied to a alert statement. The weblog gives you ideas of what values you want to look at.

  • How to use bsp application SYSTEM for session handling.

    Hi All,
    We are implementing OCI.We have a few BSP applications that are called by standard ITS application.I need to destroy session at server side when the browser is closed for that..
    I copied the pages session_default_frame.htm and session_single_frame.htm from bsp application SYSTEM into my application and made necessary changes.
    I need to pass one url 'HOOK_URL' (this is related to OCI) from starting page of application to final page.
    Now suppose earlier there were two pages in my application page1.htm and page2.htm , so i was able to pass the HOOK_URL from page1 to page2 but after adding the two pages from SYSTEM application , i can pass the HOOK_URL from session_single_frame.htm  to page1.htm
    Page session_single_frame.htm:
    Page attributes:
    hook_url     TYPE     STRING (AUTO)
    OnRequest:
    navigation->set_parameter( hook_url ).
    but cant pass it from page1 to page2...what additional code is required?
    page page1.htm:
    Page attributes:
    hook_url     TYPE     STRING (AUTO)
    onRequest:
    navigation->set_parameter( 'HOOK_URL' ).
    the above code was working fine until i added the two new pages to my application.
    Hope i was able to explain the issue properly.
    Thanks,
    Anubhav.

    Hi,
    Let me describe the steps i have taken oncw again:
    1)Copy page session_single_frame and session_default_frame from SYSTEM application and changed the name in
    DATA: target_page               TYPE STRING VALUE 'session_test.htm'.
    to
    DATA: target_page               TYPE STRING VALUE 'mypage1.htm'
    2)Addes a page attribute HOOK_URL of type string (AUTO) to session_single_frame.htm .
    3)Added the line
    <i n p u t  t y p e="hidden" na m e ="HOOK_URL"  v a l ue = "< % =  hook_url %>">
    to page1.htm so that hook_url is passd to page2.htm (page2.htm has a page attribute HOOK_URL of type string and auto).
    The hook_url in page2.htm looks like:
    "http://sapupd.mycompanyname.com:8002/sap(cz1TSUQlM2FBTk9OJTNhc2FwdXBkX1NSTV8wMiUzYXJUaHBOdE1VZDdhWkVTa3hYZGtPTXRxY1NBTWo3VlAwN3NWQ2c2REYtQVRU)/bc/gui/sap/its/bbpsc02/?~OkCode=ADDI&~Target=_top&~Caller=CTLG&~sap-syscmd=NOCOOKIE&~client=200&~language=EN&~HTTP_CONTENT_CHARSET=utf-8";
    The problem is that after the page is submited , a blank page comes up .
    On closing this blank page the "Endig user session" window comes.
    Please help
    Thanks,
    Anubhav.
    Edited by: Anubhav Jain on Oct 21, 2008 6:49 AM

  • Calling BSP application in same session

    Hi,
    I am trying to arrange a few BSP pages into some sort of "BSP pool" so I can call them from different applications. Means: I want to create something like a few base objects to re-use in other BSP applications. My BSP applications have to be stateful - so when I embed those pool pages (using iframe or similar technology) I do get a new session and cannot share the model data. :-((
    Is there any way of avoiding this session problem? Can I force a call to a new URL (on the same server) to re-use my previous session?
    Interface method "IF_BSP_NAVIGATION->goto_page" sports a parameter "session", but this parameter does not what I would have expected when fed with the current session ID.
    I could not find any documentation on the session handling in the WAS either. All I learnt is that a new session seems to be created whenever a URL with a different ICF path is called - even on the same server. If this is the case I will definitely have problems pooling BSP pages into a "toolbox" BSP application.
    Sharing the model data via server-side cookies could be a way, but fails for object references (like class instances or data references).
    Any experience with writing the model data (and references!) into ABAP memory to be re-used in the same GUI session (e.g. CIC)? That might be a workaround (?).
    Any hint greatly appreciated.
    TIA
    Peter

    I can tell you what I have used in the pass to acomplish this: BSP Extension Elements or Reusable Controller classes. 
    BSP Extensions are really designed for just this kind of reusability.  You have static interface into and out of the extensions.  All the rendering is encosed in the extension, yet will be befored in-line in the rendering of the main page.  You don't have to worry about separate sessions, or the overhead of iFrames.
    Another very similar approach is to create reusable controller classes.  Rendering logic can actually be placed in the controller as well (instead of calling a view). Brian McKellar has an SDN Weblog on how to use a controller class to build a pattern engine.
    If you are really trying to create a reusable toolbox - then I highly suggest the Extension approach.  However I have done the sharing of model data between two applications.  I have an example here:
    /people/thomas.jung3/blog/2005/05/27/custom-bsp-extension-element-for-field-level-help
    Basically I serialize the model class and write it into a server cookie.  Then I pass a unquie ID for that model instance to the second application.  It can then retrieve and deserialize the model.

  • E-recruiting Session Timeout BSP application

    Hi,
    for the BSP applications for E-recruiting Session Timeout occurs as a result I am not able to view any start page.
    Regards,
    Manish

    Hi,
    Go to SMICM and Goto-Services
    There for http go to change.
    And increase the time for keep alive and processing time to 1000 sec in the beginning . Later after all applications are opened atleast once you can reduce it.
    Also if the server is restarted it becomes default.
    Regards,
    Divya

  • How to manage sessions of two diiferent applications using SSO

    Im new to JAVA , i have two different apllication with different session management, How to make it a common session management, how to reset the timer program in JAVA for every 300 secs.Please help me out with ideas and send me the sample code timer program that can run for 300 secs and it has to be reseted when requests comes if there is any, otherwise it has to log out

    Yes total users should be around 5000, but there could be around 500 users accessing concurrently. Besides we are using to BOE to show a dashboard, with charts and graphs(using the HTMLView) so we will have to 500 concurrent IEnterprise sessions. I just hope that:
    1. Each session is unique(independent thread) although they have logged on using the same credentials
    2. The CMS server can scale upto this number(500). Don't know if there are some caching options available?

  • Calling web query from BSP application: Session handling

    I would like to call a BI 7.0 web query from a BSP application.
    Therefore, I generate a link like http://<server>:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=CR_M_0001_SALESFORECAST_0&VARIABLE_SCREEN=X
    Now, I have the problem that I have to log in again.
    The BSP application is embedded in the portal. SingleSignOn works for the BSP application, but not for the following link to the query.
    Anybody know how to execute the query w/o login again?

    i guess this is more related to ITS.
    which ITS are you using?
    integrated or standalone.
    i checked in both (using standard webgui service) i dont see any problem using /n or /<transaction>
    Regards
    Raja

  • Trouble calling BSP application in EP

    Hi,
    I have a BSP application which I need to call in an iView. EP version is 6.0, SP7 P1. The BSP seems to run fine as a URL, but does not work when called as a BSP iview. The error on calling it via the BSP iview is 'This page cannot be displayed'. Is there something I'm doing wrong?
    Thanks in advance.
    Sudha

    Hi Sudha,
    Have you activated the Portal Session Management?
    If not, please have a look at
    http://help.sap.com/saphelp_470/helpdata/en/cb/f8751d8c6b254dac189f4029c76112/frameset.htm
    and then click on "Activating Portal Session Management".
    Under "Activities" there are 2 possibilities. If you use the HTMLB library in your application, you just have to check the box "Supports Portal Integration" in the Properties Tab (poss. 1), otherwise you have to copy the piece of code at the beginning of your page (poss. 2).
    Regards,
    Rainer

  • Performance Issue with BTF editor( BSP application when Calling in WD ABAP)

    Hi All,
    In one of the requirement, I am trying to call the BTF Editor From WD ABAP application.
    When i am trying to open the BTF Editor, it is taking time to load.
    Can any one help men on this ....What I need to do in BTF Editor / WD ABAP application to improve the performance.
    Thanks in Advance,
    Aneel

    These really aren't web dynpro abap questions.  Web Dynpro ABAP is just the frame around the BSP and you are really asking questions about the use of the BTF within BSP. I think these questions would be better suited to the BSP forum.  I will move this thread to that forum.  However before I do, I should warn you that such iFrame integrate is not recommended.  The iFrame is actually deprecated in 7.0 and 7.01 (but does return to support in 7.02).  You should note that the iframe has no session management and the BSP within the iFrame will have a separate user session from the surrounding Web Dynpro ABAP.  The recommendation for such integration is to use the Portal or the NWBC and integrate these ase two different iViews within one Portal Page.  In 7.02, you could also use the Page Builder and a URL CHIP to perform this integration.

  • What is new with MAX 2.0 and is it compatible with Session Manager?

    We added non-IVI instrument information in, basically the same structure as for IVI instruments,
    into the ivi.ini file to keep all instrument information in the same place. Using MAX Version 1.1 caused no problems whatsoever and the system worked fine. With the advent of MAX 2.0 you seem to use ivi.ini as well as config.mxs to store instrument information. What we have found now is that given a working ivi.ini file from MAX 1.1, we end up with 2 or 3 copies of all the devices in the IVI Instruments->Devices section! When the duplicate entries are deleted and the application exited, the
    ivi.ini file is updated minus the [Hardware->] sections which contain the resource descriptors that our appl
    ications look for. As an added complication, under MAX 2.1 (From an evaluation of the Switch Executive) It behaves the same, except that it almost always crashes with one of the following errors. 'OLEChannelWnd Fatal Error', or 'Error#26 window.cpp line 10028 Labview Version 6.0.2' Once opened and closed MAX 2.1 will not open again! (Note we do not have LabVIEW on the system.) What is the relationship between the config.mxs and ivi.ini now? Also, your Session Manager application (for use with TestStand) extracts information from ivi.ini and may expect entries to be manually entered into ivi.ini (e.g. NISessionManager_Reset = True) i.e. Is the TestStand Session Manager compatible with MAX 2.0?

    Brian,
    The primary difference between MAX 1.1 and 2.x is that there is a new internal architecture. MAX 2.x synchronizes data between the config.mxs and the ivi.ini. The reason you're having trouble is that user-editing of the ivi.ini file is not supported with MAX 2.x.
    Some better solutions to accomplish what you want:
    1. Do as Mark Ireton suggested in his answer
    2. Use the IVI Run-Time Configuration functions. They will allow you to dynamically configure your Logical Names, Virtual Instruments, Instrument Drivers, and Devices. You can then use your own format for storing and retrieving that information, and use the relevant pieces for each execution. You can find information on these functions in the IVI CVI Help file located in Start >> National I
    nstruments >> IVI Driver Toolset folder. Go to the chapter on Run-time Initialization Configuration.
    I strongly suggest #2, because those functions will continue to be supported in the future, while other mechanisms may not be.
    --Bankim
    Bankim Tejani
    National Instruments

  • Session management problems with SSO

    Hi all-
    I've been getting an Apex app tied to SSO as a partner app (per http://www.oracle.com/technology/products/database/application_express/howtos/sso_partner_app.html). So far, it sort of works. If I go to my apex app, it redirects me to SSO, where I authenticate and end up back in the apex app. Great. Here are two problems I've run into:
    1. If I am already authenticated to SSO, and I go to my apex app (url like: http://host/pls/apex/f?p=101:1), my browser goes into an infinite redirect (url like: http://host/pls/apex/f?p=101:1:::::FSP_AFTER_LOGIN_URL:\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|\\\\\\\\\\\\\\\\\\\). To resolve, I have to clear cookies.
    2. If I am using my apex app, then log out of SSO (in another browser window), I can still click around in my apex app (i.e., apex thinks I'm still authenticated).
    Anyone have any thoughts? I'm wondering if I need to do something in page session management (under authentication schemes) to fix #2, but I have no clue about #1.
    Thanks
    Rob

    Hi Scott-
    Thanks for the info on #2 - I'll work on that after I get #1 sorted out, since it's the more dire problem. Here's some more info:
    Apex version = 3.0.1.00.08
    SSO SDK = ssosdk902.zip
    I set it up as "My Application as Partner App." I used "MY_PARTNER_NAME" as SSO Partner Application Name. In the list of SSO Partner Apps on the SSO Admin page, my partner app name is also MY_PARTNER_NAME. It gives the following info:
    Login URL:      https://sso_host/pls/orasso/orasso.wwsso_app_admin.ls_login
    Single Sign-Off URL:      https://sso_host/pls/orasso/orasso.wwsso_app_admin.ls_logout
    Home URL: http://apex_host/pls/apex
    Success URL: http://apex_host/pls/apex/RBLICK.YOUR_PACKAGE.PROCESS_SUCCESS
    Logout URL: http://apex_host/pls/apex
    RBLICK is the schema owning the apex app. In there, I created a package called YOUR_PACKAGE:
    create package YOUR_PACKAGE as
    procedure process_success(urlc in varchar2);
    end YOUR_PACKAGE;
    CREATE PACKAGE BODY YOUR_PACKAGE AS
    procedure process_success(urlc in varchar2) as
    begin
    wwv_flow_custom_auth_sso.process_success(
    urlc=>urlc,
    p_partner_app_name=>'MY_PARTNER_NAME');
    end process_success;
    END YOUR_PACKAGE;
    Anything look obviously wrong to you?
    Thanks!
    Rob

Maybe you are looking for

  • Can't install itunes due to a problem with windows installer package

    hello there i can't install itunes due to a problem with the windows installer package i found a page on this site (here is the link) http://docs.info.apple.com/article.html?artnum=304405 i done every thing on it and i still haven't been able to fix

  • Macbook air not going to sleep

    my got a new Macbook Air 13 in.  but it doesn't go to sleep, also the fan run all the time at 6000rpm or above.  So my battery is only good for 2 or 3 hours. Went to apple store genus bar thye changed some settings and got rid of some program.   But

  • A glitch in my use of the change event

    I have a script in the change event of a drop down list field that works when a certain choice is made then another field becomes visible. I am trying to get that field to become visible when when a record from a database populates the field the corr

  • How to make this work?

    I hope you'all experienced users can help. I come from a background of having worked for a County Govt. where we as the IT staff had Blackberrys. I am guessing they had a BES. I got used to that function! Now, I just bought an 8830 through Verizon, a

  • Can i use "Upload to ftp host" from muse to upload to BC?

    Im trying to host an additional website on the same adminconsole in BC, on a different domain name. From "Publish" in muse it doesn't look possible to upload an additional website to BC. So i tried to upload from the "Upload to ftp" in muse but it al