Session logoff with new target url using BSP_MODEL template

Hi,
I implemented the session management pages as used in ITSM. However I had some problems when calling the application in a popup (somehow the deletion of the session appears also after the 2nd start of the app deleting all my created models)
So I decided to try the slightly different pages from BSP_MODEL. Et voila problem solved.
However I have this button with:
onClientClick = "parent.exitBSPApplication( '<%= l_url %>');"
So a new problem because this is not used in the BSP_MODEL default.htm.
What did I do
1. I added a parameter to the script like in ITSM
function exitBSPApplication(newTargetUrl)
2. Copied 2 lines from the ITSM script
document.getElementById("FRAMESETID").onunload = null;
window.setTimeout('{document.location.href="'newTargetUrl'";}', 750);
This would do the trick I thought. However pressing the button results in going to the new target url, but sadly does not close the session.
I already tried to delete the 'and application->counter = 0' but this is not working either.
Any suggestions?
Greetings,
Vincent

Vincent,
It is important not to look directly at all the subtle different bits of code. Rather understand the big picture. Our test programs, for example ITSM and/or BSP_MODEL have different versions of the general principle. This just reflects different goals we wanted to achieve, etc.
The minimum you need is a frameset with onUnload hooked, and then load you application inside this. You can even delete all of that loading stuff. Just fluff.
With this, if the window (only IE!) is closed, the onunload will still terminate the session.
The button is just to demonstrate an example of how to do this when you want an explicit logoff button in your application.
One last important aspect: if you restart the same application, then they share the same cookie, and things go wrong! Effectively you can kill the new instance instead of the old one.
Coming to TechEd?

Similar Messages

  • Synchronizing persistent tmux loginctl session ID with new session

    Hey all. Does anyone else have the issue with a persistent tmux session losing it's 'active' session status with loginctl after restarting the window manager (monsterwm in this case, logging in automatically on VT1 per the wiki)? This causes issues with udisks mounting priviliges. I'd think it'd cause issues with pulseaudio but it doesn't (and I don't understand why).
    So, to reproduce:
    1. Fresh reboot and login
    2. Open terminal. $XDG_SESSION_ID will be 1
    3. Open tmux instance. $XDG_SESSION_ID will be 1
    4. Restart the window manager
    5. Open terminal. $XDG_SESSION_ID = 3. loginctl session-status active=yes
    6. Reattach tmux session. XDG_SESSION_ID =1. loginctl session-status active=no
    Is there some easy way to keep these synchronized so I don't have permissions issues?
    Thanks!
    Scott

    No, it has nothing to do with host names, CNAME, DNS or anything.
    The session ID is sent to the server from the browser in either a cookie header or as part of the "extra info" part of a URL with the request. If there is no session ID in either place, the server creates a new session. If there is a session ID, then it gets the session object (if it's not expired). Then it sends the session ID back to the browser with the response to that request (either as a cookie or encoded into the URLs in the page, which you have to do explicitly do for each URL). Click on a link, then the process starts again. The first time you go to a site, you have no session ID. The server just makes a new one.
    The only thing that domain names have any affect on is cookies. Cuz cookies are name/value data associated with a domain name of the server (amongst other things). The browser, for security reasons, only sends cookies in requests to servers that set the cookie in the first place. The server can't get cookies that it didn't set.
    So if you have a server running on your local machine, you can access that server in 3 ways:
    1) localhost
    2) network name
    3) domain name
    The browser can know quite easily that 1 and 2 are the same thing, and send cookies for either interchangably (not that it has to, but it seems you are seeing this happen, so...). But the browser will probably not make any assumption about 3's relation to 1 or 2. The association is generally to domain name, not necessarily IP address.
    And it's really a moot point anyway. You should not typically be accessing a server from those 3 different means within the same session. Someone connecting to your server isn't going to use anything but #3 anyway, the other 2 (definitely #1 and #2 only works on the same LAN) wouldn't make much sense. So there's not going to be this issue at all. The session ID itself has no relation whatsoever to a client's domain name.

  • Creating new site collection using wsp template fails

    Hi all,
    I'm creating new site collections using a wsp solution generated by "save as template".
    For site collection creation I select "<Select template later>" then I upload the wsp solution.
    Everything worked until last month, now after CU installation (agoust 2014) I get an error:
    "List does not exist. The page you selected contains a list that does not exist. It may have been deleted by another user."
    Does anyone know how to solve it?
    Thanks 
    Maurizio

    ULS contains a lot of those errors:
    System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>, 
    StackTrace:
         in Microsoft.SharePoint.SPWeb.GetList(String strUrl)
         in Microsoft.SharePoint.SPWeb.TryGetListByUrl(String url)
         in Microsoft.SharePoint.SPFieldElement.PerformFixUpIfLookUpField(Guid fieldId, XmlNode xmlNodeOfAField, SPWeb web)
         in Microsoft.SharePoint.SPFieldElement.ElementActivated(SPFeaturePropertyCollection props, SPSqlCommand sqlcmdAppendOnly, SPWebApplication webApp, SPSite site, SPWeb webNull, Boolean fForce)
         in Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionFieldsAndContentTypes(SPFeaturePropertyCollection props, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce)
         in Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce)
         in Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)
         in Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)
         in Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, Int32 compatibilityLevel, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean
    fMarkOnly, Boolean fIgnoreMissing, SPFeatureDefinitionScope featdefScope)
         in Microsoft.SharePoint.SPFeatureManager.EnsureFeaturesActivatedCore(SPSite site, SPWeb web, String sFeatures, Boolean fMarkOnly, Boolean fIgnoreMissing)
         in Microsoft.SharePoint.SPFeatureManager.<>c__DisplayClass7.<EnsureFeaturesActivatedAtWeb>b__6()
         in Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)
         in Microsoft.SharePoint.SPFeatureManager.EnsureFeaturesActivatedAtWeb(Byte[]& userToken, Guid& tranLockerId, Int32 nZone, Guid databaseid, Guid siteid, Guid webid, String sFeatures, Boolean fIgnoreMissing)
         in Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String&
    bstrWebTemplate, Int32& plWebTemplateId)
         in Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String&
    bstrWebTemplate, Int32& plWebTemplateId)
         in Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate,
    Int32& plWebTemplateId)
         in Microsoft.SharePoint.SPWeb.ProvisionWebTemplate(SPWebTemplate webTemplate, String webTemplateToUse, SPFeatureWebTemplate featureWebTemplate, Page page, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1&
    featureDependencyErrors)
         in Microsoft.SharePoint.SPWeb.ApplyWebTemplate(SPWebTemplate webTemplate, Page page, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1& featureDependencyErrors)
         in Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate)

  • Templates - how to tell what target is using what template

    Trying to figure out who or what target is using what monitoring template? Anyone can suggest a way? Are only groups use monitoring templates?
    Thanks
    Roman

    Hi,
    As far as i know, you can find out this. Monitoring template is a template which you create and then apply to targets (so that you avoid setting metrics for individual targets one by one). You can apply a template on a single database or on a group by adding all databases in a group. Once you apply template, template metric thresholds will be set for that target based on the template and still you can modify certain metrics for this target. So it means that on a single target you can have metric set through template and also set manually thus it is not possible to find out what was implemented through template and what was done manually.
    Salman

  • Use of SOAP Receiver Adapter in a recursive way with dynamic Target URLs

    Hi all,
    I have a following scenario.
    1. I have to call a webservice with a URL http://myserver.com/default.aspx?action=index
    This will return a list of xml filenames as below
    <?xml version="1.0" encoding="UTF-8"?>
    <filelist>
      <file uuid="test1" />
      <file uuid="test2" />
      <file uuid="test3" />
      <file uuid="test4" />
    </filelist>
    2. Now I have to call the same webservice with a change in action so that the url looks like
    URL - http://myserver.com/default.aspx?action=fetch&uuid=
    for all the filenames in the list
    So in essence, I have to create a dynamic URLs recursively like
    http://myserver.com/default.aspx?action=fetch&uuid=test1
    http://myserver.com/default.aspx?action=fetch&uuid=test2 and so on
    3. And with each call to the URL in step 2, the incoming xml is to be mapped to an IDoc.
    I will be creating a ABAP proxy to initiate the calls.
    I would like some ideas so as to have a less complex approach to the solution.
    Regards,
    Neeraj

    Hi,
    dynamic SOAP URL - adapter specific properties (http receiver adapter)
    Dynamic configuration payload - https://media.sdn.sap.com/javadocs/NW04/SPS15/pi/com/sap/aii/mapping/api/DynamicConfiguration.html
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get
    (StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","THeaderSOAPACTION");
    String a = http://something.abcd/applicationName/xmlMessage //set the value of actual action here
    conf.put(key, a);
    return "";

  • Issue with new iWeb URLs

    As you may know, iWeb 08 creates a new URL when publishing, and this is creating me a few issues.
    My previous website URL was:
    http://web.mac.com/gianlucamarucci/iWeb/gianlucamarucci.com
    and my domain (www.gianlucamarucci.com) was redirected here
    the new URL iWeb 08 creates is
    http://web.mac.com/gianlucamarucci/gianlucamarucci.com/home.html
    or simply
    http://web.mac.com/gianlucamarucci
    (the .../iWeb/... part disappears)
    Now this means i have to change the redirect (not a major issue)
    What I do not understand is the following:
    1. when i complete publishing and click on visit, iWeb is pointing at the old URL!
    2. if i am in my .Mac homepage and click on the links of my pages on the left, they point at the old URL too!
    How is it possible? does anyone know how to sort this out?
    A second question I have is about personal domain. Is it better to stick with the redirect service, ir shall i use the personal domain from .Mac? Or can i keep both activated?
    many thanks for your help!
    gianluca

    Hi Cassio,
    I just did a quick read up on the new front end editior and found the following tips from SAP. Maybe there could be something to help you out.
    How to report a bug
    Verify that you have the newest version of the editor installed. You can update your control with this script - maybe your problem has already been fixed. (This applies to beta testers ONLY!)
    Check the internal FAQ (CSN note 812186) for up-to-date information about known problems.
    Find out who is responsible. If the error relates to the syntax highlighting or the code completion, create an internal message for component BC-ABA-LA. In all other cases create an internal message for component BC-FES-GUI.
    Please provide clear step-by-step instruction of how to reproduce this error.
    Please be patient - we try to fix bugs as quickly as possible, but propagating the corrections may require some time. If something breaks and a fix is not yet available, you can always disable code hints or code completion in the settings dialog.

  • Compare Old Value (Session State) with New Value on Submit.

    Hi all,
    Is there an easy way to do comparison of Old Value (Session State Value) with the New Value?
    is there an API for that? like what we have in PLSQL Trigger :NEW & :OLD
    Thanks before
    -Joel

    There is only one version of session state available for examination at any point during page rendering or processing, the current version. Can you explain more about what you need?
    Scott

  • Help! The new Pages. I can't copy an entire page or rearrange the pages. In the new formatt also when I insert a new page when using a template it doesn't give me the formatting and guides.  Can anyone help.

    I can't copy an entire page or rearrange the pages. I use this feature a lot, particularly at this time of year. Can't seen to rmove the header and footer markers either.
    Can anyone help or do I need to revert back to pages 09?
    If I do re-install 09 will I be able to open the files that where converted to the new version?
    I don't like this new one. Many of the graphics features have been removed.  Not impressed at all. Very frustrated.
    The business card templates and others behave strangly.  If I insert a page it's blank only. I don't get the guides.  I was in the middle of a design project and had to start again from scratch as it threw everything out of alignment  and I can't copy an entire page. When I use select all, group then copy when I pasted it on the new page it overlayed all the cards in the top two segments.  Frustrating !  I ended up  saving my first page under a different name that was the only way to copy the page then I had to work between three documents instead of one.
    I went in today to last years Christmas tag file and the same issues I can't copy a page. I can't rearrange the pages.
    Simple features like colour choice and transperency for shapes are gone. I want to use my colour choices not someone else.
    Sorry, I am ranting.
    For now all I need is to be able to copy and switch pages around in one document.
    Please Help! I am about to start pulling my hair out in frustration.

        Yes, I am using 09 with out issues.  Just have to remember to use "open with 09" or open pages 09 first then my document.
      I create some amazing cards and posters with 09 that when on a PC I would have to use both Word and Publisher to create.  Flipping back and forth. 
      Apple if you're  listening please, give us back our layout options and even add a few more design options like beveled and 3D text.

  • How to find routers with multiple bgp neighbors using baseline templates?

    Running LMS 4.1 5k on Windows
    We have around 400 routers on a MPLS network. Only few of these have more than one BGP neighbor. We need to enable some bgp traps so we know when a bgp neighbor is down. How would I write a baseline template to check if a router has more than one bgp neighbor?
    basically I want to know if a router has more than one statement of the following kind:
    router bgp xxxxx
    neighbor x.x.x.x remote-as xxxxx   <-- 1st neighbor
    neighbor y.y.y.y remote-as yyyyy    <-- 2nd neighbor

    Yes, it looks like the bug I mentioned previously.  The bug has nothing to do with RME.  You can use RME or not, and this bug will still be triggered.  While an upgrade is recommended, the Release notes detail a workaround:
    The 1711 router gives traceback when we process an snmpwalk at OID
    "cInetIcmpMsgOutPkts" (1.3.6.1.4.1.9.10.86.1.3.2.1.6) from CISCO-IETF-IP-MIB or
    when ciscoDslCpeMIB is queried (1.3.6.1.4.1.9.20.1.1).
    12.2(15) works well
    12.3(8)T4 and 12.0(3)T are giving this problem.
    Didn4t find a similar problem reported to this one.
    Workaround:
    The problem lies in CISCO-DSL-CPE-MIB, so if you don't need this mib you can
    exclude it from the default or created snmp view, thereby preventing the
    traceback. Here is an example of 1) changing default view and 2) creating a new
    view.
    -- change the default snmp view to exclude CISCO-DSL-CPE-MIB
    conf term
    snmp-server view v1default ciscoDslCpeMIB excluded
    end
    show snmp view
    -- create a new snmp view that excludes CISCO-DSL-CPE-MIB
    conf term
    no snmp-server view nodslmib
    snmp-server view nodslmib iso included
    snmp-server view nodslmib internet.6.3.15 excluded
    snmp-server view nodslmib internet.6.3.16 excluded
    snmp-server view nodslmib internet.6.3.18 excluded
    snmp-server view nodslmib ciscoMgmt.252 excluded
    snmp-server view nodslmib ciscoDslCpeMIB excluded
    no snmp-server community public
    snmp-server community public view nodslmib ro
    end
    show snmp view

  • Problem with "Run Web Layout" using own template

    When I run a report (using Run Web Layout) which uses my own template (a modified version of rwblue.tdf), it outputs a plain page on the browser (as though it has no template).
    When running the same report (using Run Paper Layout), the output is as it should be.
    Can anyone help? Thank you in anticipation.

    Hi John
    Take a look at Reports product site on otn site. It has an example on how to create a web template for Reports Web View. In addtion to tdf file, for web layout, you need to have a .css file as well as a html code template.
    Hope this will help.
    Thanks
    Rohit

  • My lost iPad is using my iCloud storage with new name.

    I lost my iPad in Oct-2012. It appears that it was wiped out since it disappeared from Find My iPad list within 15 min of the incident.
    However, now I can see that the iPad with new name is using the iCloud storage from my account.
    Any hope to retrieve it. What should I do?
    I did file the report with the police after the incident, but they have not taken any action so far (since I lost it in a store with survelliance camera, they could have asked the 15 min video).
    Thanks,
    -Naveen

    You're a genius lol.. I posted the same question about a popup in the way so I can't unlock my screen. I thought if I turned it off and back on then the popup blocker should disappear, but I couldn't even access the power off slider. I never knew how to reset the iPad.. I did what you said and it worked.. yay. My iPad is back in business thanks to you lol... I saved $20 for a simple tech repair lol, I am a happy lady right now.

  • I' m not able to create a new Target Schema

    Hi folks,
    Always I tried to create a new Target Schema using OWB Runtime Assistant, installing into a new user schema or into an existing user schema I've got a Target Schema Installation Error. The log file shows the following error lines:
    (Spawn Token) Error loading Java into DB:
    Sun Feb 22 11:37:32 BRT 2004
    oracle.wh.util.DebugUtility: [processSPAWN]: A spawned program error. Exception = java.lang.Exception: java.io.BufferedInputStream@2cd19d
    Sun Feb 22 11:37:32 BRT 2004
    oracle.wh.util.DebugUtility: [processSPAWN]: Get the error, stop processing...
    Sun Feb 22 11:37:32 BRT 2004
    oracle.wh.util.DebugUtility: Files\Java\j2re1.4.0_03\lib\ext\QTJava.zip""=="" was unexpected at this time.
    Sun Feb 22 11:37:36 BRT 2004
    oracle.wh.util.DebugUtility: Assistant operation is unsuccessful ...
    I've installed both OWB Design Time and OWB Server Side, in the same machine using 2different Oracle_Homes.
    Please, tell me what I can do to overcome this.
    Thanks all,
    Ismael

    Hi Pierre,
    Thank you for your response.
    Actually, I've installed the OWB Server Side because I was getting the same problem using the OWB Run Time Assistant of the OWB Design Time that I've installed before. In the OWBInstallGuide I read the following text, recommending not to use the same Oracle_Home:
    "2.5 Step 4. Perform the OWB Server Side Install using Oracle Universal Installer
    Install the OWB Server Side components on the machine where your Oracle Database Server is installed.
    When you performed the OWB Design Time installation, you also installed the runtime components. Therefore, if you are performing the OWB Server Side install on the same machine as the OWB Design Time install, you are installing the runtime components twice. If you decide to go forward with this configuration, make sure to specify a separate ORACLE_HOME for each install."
    Any way I'm going to try your suggestion but I'm afraid it couldn't work because of the above text. I'm running out of time, I'm supposed to start a project next Monday and I'm stuck on this problem.
    Please, if you have any other hints let me know. I'll keep you informed after using the same Oracle_Home for both.
    Thanks again,
    Ismael

  • Target URL in the Receiver SOAP channel in PI 7.11

    Hi
    I have designed integrated Configuration in PI 7.11 and i have SOAP sender and SOAP receiver. SOAP sender is fine but for SOAP receiver i have an issue with the target URL that i selected.
    Initially the receiver was ABAP proxy with HTTP connection as we dont have ABAP related adapters in AAE i used SOAP. But i have used the same URL that is the Target host configured in the HTTP ABAP connection to the target system. Then i am getting the following error at the receiver comm channel
    Message processing failed. Cause: com.sap.aii.af.sdk.xi.util.URI$MalformedURIException: no scheme
    I am sure i am doing a mistake, the URL i am using is wrong as it is not meant for SOAP calls. Please suggest me what needs to be done here.

    ..I am sure i am doing a mistake, the URL i am using is wrong as it is not meant for SOAP calls. Please suggest me what needs >>to be done here
    You are using Integrated configuration with PI 7.1 EHP1 version. That means SOAP supports as PI native protocol (XI) for PROXY scenario. So, you have to create soap receiver adapter and choose message protocol as XI.
    Integrated configuration occurs in java stack engine and XI adapter(proxy) not exists there. Only if you do classical processing (IE) then you can use XI adapter at the receiver side. Thats the reason you dont find XI adapter in the integrated configuration.
    Hope I answered your question

  • How to create sharepoint Group with read only permissions using powershell for entire site ?

    How to create sharepoint Group with read only permissions using powershell for entire site (including subsites and top level site)

    Hi
    using (SPSite site = new SPSite(url))
    using (SPWeb web = site.OpenWeb())
    SPUserCollection users = Web.AllUsers;
    SPUser owner = users[string.Format("{0}{1}", "Domain", "Owner Username")];
    SPMember member = users[string.Format("{0}{1}", "Domain", "Default Member Username")];
    SPGroupCollection groups = Web.SiteGroups;
    string GroupName = “Super Exclusive”;//your group name
    string GroupDescription = “Super exclusive group description.”;
    groups.Add(GroupName, owner, member, GroupDescription);
    SPGroup NewSPGroup = groups[GroupName];
    SPRoleDefinition role = Web.RoleDefinitions["Read"];
    SPRoleAssignment roleAssignment = new SPRoleAssignment(NewSPGroup);
    roleAssignment.RoleDefinitionBindings.Add(role);
    Web.RoleAssignments.Add(roleAssignment);
    Web.Update();
    Please 'propose
    as answer' if it helped you, also 'vote
    helpful' if you like this reply.

  • Creating a new class using a template class

    I am very new to Java.
    I need to make a new class by using a template class that was given to us.
    I go to File / New / Class but cannot find how to select a template class to create a new class.
    Thanks,
    gs

    gs2010 wrote:
    I am very new to Java.
    I need to make a new class by using a template class that was given to us.
    I go to File / New / Class but cannot find how to select a template class to create a new class.
    Thanks,
    gsYou need to be much more specific as to what you are trying to do.
    What is a "template class"?
    How are you trying to "go to" and "select" the template?
    Etc.

Maybe you are looking for

  • Does the new airport extreme support backing up via time machine to an external hard drive pluged into the usb port

    Does the new airport extreme support backing up via time machine to an external hard drive pluged into the usb port

  • Error in flat file Preview

    Hello gurus, I am getting the error "Virus scan profile /SCET/GUI_UPLOAD is not active" during preview when I use data seperator ","  for csv file. When I use ";" the error is gone but then I won't get right data in the fields because its .csv format

  • Applet / SQL Database communication

    I am developing an applet that needs to connect to a SQL Database to keep track of a variety of information. I am running into some errors when I try to connect to the database. Can anyone tell me the best way for an applet to connect to a SQL databa

  • Operation failed!

    i m getting error from last 2days- operation could not be completed due to an error! This error not allow me to connect through my phone to ovi store! What should i do,i tried to re-install yhe application but still showing the same error..

  • Source Database name

    Hi I am trying to use Oracle10g stream for near-real time transfer of data from a table between two computers in an intranet. Before doing this, i tested the method/procedure for two database in the same computer. It work fine but when i tried the sa