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

Refreshing page when using session_single_frame.htm & Unique session-id


I have 2 issues:

1)I am using session_single_frame.htm to cleanup sessions.The problem is that when I navigate to another url by using navigation->goto_page('XXX') in the target_url if the page, then the url of the browser still remains to be the same. This is becuase of the fact that I am using framsets. Then when I refresh the browser the control comes back to the target_url that I had defined in the session_single_frame.htm. is there a way we can control this? i.e the url of the target_page should dynamically change to second url of the page.

2) If I Copy and paste the url of the browser into another IE session the previous session-id is used. is there a way to control that i.e distinguish every window with a unique session-id? once you have 2 windows using same session-id then I run into problem with cookie data being overlayed with each other.

Would Appreciate any help in this regard


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jun 11, 2004 at 11:50 AM

    Hi Colleagues,

    I'm picking up topic 2 of Ashish, which has not been answered. Hopefully I'll get an answer, because I'm running into the same problem, now.

    I save cookie A on page 1 and then open page 2 in a popup (with javascript) where I save cookie B.

    When I start my bsp application, the first run is always fine. But if I open the popup the second time, cookie A is not there. It seems to be overwritten by cookie B, although cookie B has another name.

    Any ideas?

    thanks a lot in advance,


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 15, 2004 at 10:19 PM

    I think that here two problems are been mixed.

    The first is session ids. These are stored in cookies with a specific application path. This is why it is not possible to run the same BSP application twice in the same instance. Anything or File->newWindow is same instance. If you require to run multiple instances of the same app, only technique would be via sap-syscmd=nocookie.

    The problem (2) described by Ashish is relatively complex. You will need to make HTTP proxy traces and really understand how cookies work before we can explain this. Problem is that the session management that should close first the one session before starting a new one is relatively slow. We have now found a workaround which seems to be good. Should I find time in the near future I will write it up. However, this is no promise! Time is very scarce.

    What is possible is to run two windows, both actually running the same BSP application. As long as the applications stores no state at the server, all in fine. Especially if one uses serverside cookies to store state. Now it is only required to keep the two instances separated. This is something that the developer must do. When you do a add an new random instance number onto the URL. This number must be rendered in each HTTP response as hidden input field, so that one knows which window is calling.

    Doing the same for file-->newWindow is similar, slightly more complex. Use a frameset with no windowNr. Inside frameset load frame with windowNr in URL. This way all requests from this current window (from frame) has a windowNr. When control-N is pressed, the frameset URL without the windowNr is used to start the new window. When we see a new request at the server without a windowNr, we assign one and setup again the frameset for this window.

    Unfortunately this topic is relatively complex, and not something one can describe in the scope of one page. It will need a lot more careful writing.


    Add a comment
    10|10000 characters needed characters exceeded

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.