Session across new browser windows

Hi All,
I am facing an issue with HttpSession when trying to open new windows in my web application and trying to acess the session from the new windows and want your expertise in solving this problem.
Here is the scenario:
1. The web application is opened in a browser window, this creates a new session and the JSP adds some stuff to the session.
2. Down the line in the app using the menu's user invokes a JSP in a new browser window using window.open JavaScript command.
3. This JSP tries to get some information from the session (which was added by the opening JSP) and fails as it gets a new session. I know this coz i checked the session ID in both JSP (opening JSP & new JSP) and they are different.
Is there a way I can aviod this. Can the new JSP join the existing session?
Thanx a lot in advance for all your help on this.
Rgrds,
Ritin

Well cookies are enabled on the machine but I am not using anything special. I am just sending the request and using the session object made available by the JSP container ('session' variable in JSP).
What I am doing is just submitting the request in the new window without any URL encoding or anything.
BTW can you explain what you meant by URLencode. How can I do that?

Similar Messages

  • Maintaining session across multiple browser windows and page refreshes

    Hi there,
    We're currently developing a Flex application with a couple of session-related requirements that we're not sure how to solve. Before we jump in and maybe go about things in the wrong way, I thought I'd post and see if anyone here knows of some elegant solutions!
    Currently, when our Flex app starts the user is presented with a log-in screen which authenticates the user against our server. Client-server communication is done through BlazeDS.
    Our first requirement is the ability to open a new browser window from Actionscript - this window will load a pdf document. The servlet that serves this pdf should deny the request if the user is not already logged in. The only way we can see to do this so far is to open the pdf url using navigateToUrl() with the '_blank' target, passing a jsessionid token as a url parameter. Is there a better way to preserve session state when opening a new window?
    The second requirement is to preserve some application and session across browser refreshes. Our Flex app has several screens that the user can tab between. If the user hits F5 or the refresh button in their browser, we'd like the app to return to the same screen after the refresh. I've been looking into using BrowserManager to add a fragment such as #screen=2 to the url, but of course we only want the app to display screen 2 if the user has already authenticated with the server. Is there a way to reuse the user's existing session credentials after a page refresh?
    Many thanks in advance for any advice anyone can offer on this. It could very well be that we're missing something about how BlazeDS uses / exposes session credentials that would make all of this easier to implement than we currently realise!

    We use javascript to pass values between a 'data look up' window and the originating Servlet. If this is of any use, I can send you some examples.

  • Transferring session to new browser window

    Hi Everybody,
    I am using struts for a webapp and on one of of the pages, I have to put a link which would open a new window for the user. THen new window would have the same data as the original window and would also the user to play around in the new window, that's just the business requirement.
    Lot of data in the original window is coming from and is associated with a session.
    Now how do I transfer ( or refer to or whatever ) the session from the original window to the new window that is opening up. And we are using on IE, if that matters.
    And help and comments would be appreciated.
    Thanks in advance.
    Vikas

    Ok I think my understanding of the situation has changed in the meantime also. So here is what's going on exactly.
    A user is logged into my application and did a search for a claim and is looking at a jsp page (call in claim.jsp) and the data on this page is coming from a value object ( basically a bean called claimVO) and this claimVO is store in the session. And claimVO is placed in session as a result of the search done by user after he logged in.
    The user can hit a link on claim.jsp and open a new window (a popup) to edit the claim he was viewing in the previous window 1. The window 2 being a popup and cookies being enabled would share the same session as window 1 and claim.jsp in window 2 would also be populated from the original claimVO stored in session.
    But what we want to achive here is that when window 2 is opened we start a new session and copy the claimVO from session1(in window1) to session2 and then the two windows behave as two different instances of the applicaiton.
    Now I don't think that it is readily possible (if at all) to share objects between sesssions cause it would kill your security.
    So how could this be achieved. I want to copy an object from one window session to another window session , the point is that the two windows need to have different objects with different states.
    Second idea is the I could use a hashtable keyed by the window id (or some kinda id) associated with a browser window. And store my objects ( or instances ) in the hashtable.
    And the two different browser windows would use the objects based on their windows ids.
    So is there anything called or like browser window id that I can get in my java/jsp code. So each browser jsps in each browser window would use the instances stores in the hashtable(which is stored in the common session) based on the id of the window they are operating in.
    I might have made it too complex.
    Thanks in advance
    Vikas

  • I close Firefox session and then try to open a new browser window - get message that Firefox is still running and I need to shut down and restart. Need a solution

    I close a Firefox browser and at a later time want to open a new browser window but get message "Firefox is still running and I need to shut down before I can open a new session" I do not want to shut down as this is laborious - I can go into task manager and processes and click on Firefox and end session that way but this is not the solution. Firefox seems to be running in background but I cannot open a new session window without doing on of the above.

    Have a look at this post, see if it is of any help (though related to Vista, but same issue can be there with Window 7 also)
    http://www.vistax64.com/browsers-mail/265937-firefox-exe-still-running.html

  • New browser window

    I would like my application (which is built with adf uix) allows the user to open a new browser window when he needs.
    Unfortunately this functionality creates some problems.
    1)     I set and get some sessionScope attributes to manage some behaviour of the program. When I open a new browser window if I set a sessionScope attribute (e.g. ‘sessionScope.attr1’) with a value while working in this window then I will read this value also in the other browser window, and this is a problem for me.
    2)     In one page I display the values of the current row of a view object. The current row is set with some operation. If the user opens a new browser window and performs this operation he will set a new current row in the view object, so in the other browser window he will see the data of the wrong current row.
    Is there a solution to this problems or should I force the user to work with only one browser window?
    Could it be a solution to ‘force the creation of a new session’ when a new browser window is opened? And if this is a solution, how to do this?
    Please help.
    Thanks, Mauro

    repost

  • Open sso enabled app in new browser window

    I have a java app deployed to OAS and secured with Single Sign on. I would like my app to open a report and display it in a new browser window. When the new window opens I am getting an error stating that user is not authorized to access the report. This is due to the session information (successful login) being stored with the cookie in the original browser window (where the session started and where the user originally logged in). Is there a way to pass that cookie information to the 2nd browser window...or some way to re-authenticate without having the user log on again...possibly some mod_osso set-up...or some additional code? TIA.

    Hi Durairaj,
    The thing is that I did not get the desired answer to my query and the thread was posted in a wrong forum thus I have the query again inthe correct forum.
    Regards,
    Sweta.

  • Opening a new browser window always puts a flv-file (0bytes of a youtube vid viewed earlier) on desktop. Firefox 18.02

    Opening a new browser window always puts a flv-file (0bytes of a youtube vid viewed earlier) on desktop. Firefox 18.02
    viewed the yuotube vid yesterday. deleted all the flv-files on the desktop.
    same thing today, a new window always puts the same empty file from yesterday.
    any suggestions?

    You can check the home page setting:
    *Tools > Options > General > Startup: Home page
    *https://support.mozilla.org/kb/How+to+set+the+home+page
    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created

  • How to open new browser window on click of command button

    Hi,
    We have a requirement to open an image in new window when a command button is clicked. Is there any sample explaining how to do that?
    Thanks in Advance,
    Pradeep

    Hi,
    I have to load an applet viewer in the new browser window. I have URL to the PDF.
    I ma able to load the applet viewer in new browser window using javascript. But I have to load the new PDF if the same window in already opened.
    The issue here is , i am loosing the window handle if the parent page is refreshed. I want to store the window handle in session scope variable and use the same.
    How do i update the session scope variable using javascript?
    Thanks and Regards,
    Pradeep

  • Load balancing 10g forms - Connection from new browser window not supported

    Load balancing 10g forms - Connection from new browser window not supported
    We're experimenting with using webcache to load balance between multiple applications servers running OC4J forms processes.
    We currently have one machine with infrastructure and mid-tier (BI & Forms) installed, which is being used for the webcache functionality, this is load balancing between 2 other servers each of which just have the mid-tier (BI & Forms) installation
    In order to get this to work, I had to follow the instructions in the Forms deployment guide : http://download-uk.oracle.com/docs/cd/B14099_11/web.1012/b14032/tuning.htm#sthref707
    The main gist of this is that you need to set the following in the orion-web.xml file in order that the sessions are maintained:
    <session-tracking
    cookies="enabled">
    </session-tracking>
    This all works fine in most cases.
    The problem I am having is if I do one of the following on the client machine:
    1) From IE6 / IE7 run a copy of a forms application. Then open a new window using the "New Window" menu option, and attempt to run another forms application.
    2) In IE7 or Firefox 2.0 open a copy of the forms application, and then open a new tab and try and open another forms application.
    If I try either of these I get a FRM-92101 error, and the following is displayed in the java console:
    oracle.forms.net.ConnectionException: Connection from new browser window not supported
    From trawling various forums (including metalink and otn) it looks like a problem with the way coockies are handled.
    Unfortunately the usual workaround is to ensure that the session tracking option in the orion-web.xml file is disabled.
    The problem is that I need this enabled in order for the load balancing to work.
    Does anyone know of any other workarounds or patches that might help resolve this?
    We're using Application server 10.1.2.0.2 running on windows 2003 servers.

    You were right. Carriage returns were stopping it from working (the document is laid out over separate lines, so I assumed it would make no difference...).
    I've now managed to get it so the forms at least run, but they are all being run in the forms OC4J instance on the same machine as the OHS.
    Has anyone actually managed to get this to work, or am I doing something wrong?
    I did wonder if using an OHS instance on a machine with no forms installation would make any difference?
    I had raised a support call via metalink on this subject, but they eventually came to the conclusion that the only way to do this is with a hardware load balancer (Despite several documents suggesting that webcache is the way to go (including the forms deployment manual)).
    I'm at the point now of giving up and writing some custom scripts to do the job instead...

  • JavaScript for opening a new browser window.

    Hi all,
    Let me start by saying that I'm not JavaScript savvy at all.
    I have two buttons on a slide and I want each to open a new browser window.
    I Googled for a script and found this:
    window.open ('URL')
    I tried in my project and it worked fine but the browser window that my project was running in also changed.
    I've attached a .gif image of what happens to my project window when either of the two buttons is clicked.
    Can anyone help??

    You can check the home page setting:
    *Tools > Options > General > Startup: Home page
    *https://support.mozilla.org/kb/How+to+set+the+home+page
    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created

  • Link to another page in a new browser window

    Hey Guys,
    I wanted to know how to set up a link to another page that loads up in a new browser window.
    This what my code looks like:
    <!--
    htp.print('<center>' || :P1_11 );
    htp.print('
    --!>
    This works but the problem is that it goes straight to the login window and asks the user to login again and then it goes to the desired page. Is there a way to set up the link so it goes directly to the new page in a new browser without having the user to log in again?

    Have you tried using the #SESSION# substitution string in the URL instead of hard-coding the session ID into the link?
    By the way, why is so much of your stuff in anonymous blocks/procedures? Just curious.
    Earl

  • Start in New Browser window

    Does anyone know how to get a creator project to always start in a new browser window?
    Conversly, I would also like to add a button to close the browser window and end the session.

    I guess I should clarify my question.
    I have a five page web application that aceeses a database. I log the user in as part of the init of the session bean. I would like to log the user out, close the database connection and return the user to wherever the started from in their browser.
    I figure the easiest way to do that is to always open a new browser window when the session bean starts up. This would allow me to close the session and the browser window, forcing a new session to be started the next time the user selects the application form the main web pages.
    What you appear to be saying is that the control of starting the deployed project in a new window would be done from the logic of the main page using javascript, php,html or whatever the main web pages are written in.
    You suggest that my close be controlled through a javascript call. I was hoping to do it within my creator code which is written in java and jsp. Is there a java call to close the browser window?

  • Open calling form in new browser window

    HI,
    I am using forms 9i. From menu item, i am calling a form using call_form, the called form is opening in same window, my requirement is the called forms want to open in new browser window. I am using mdi window.
    Any idea ?
    Regards
    Ramesh babu

    If you look in your browser address field, you will see your current forms has a (probably very) long url, one section of which is the form name. Now, you can use this as the URL argument in a WEB.SHOW_DOCUMENT() call. However:
    (1) if your URL doesn't include the userid, etc. (very likely in a production situation) you will have to log in again.
    (2) as (1) might lead to suspect, you are in a new database session.
    Why do you want to do this?
    Cheers, APC

  • How can I save my customised toolbar so it is there every time I open a new browser window

    I have created a customised toolbar with all the icons I want but have to do it again every time I open a new browser window.

    i found i had almost exactly the same problem as you. one evening my itunes just wouldn't start up, it told me that 'itunes is unable to open because some of it's required files are missing, please re-install itunes'. now, i personally know a lot on the subject of computers and how they opperate, i had the built the computer that i encoutered the problem on myself. as soon as i came across the problem, i immediatly thought that i would be able to simply uninstall itunes and quicktime, and then re-install.
    after doing this, nothing changed, i went straight to 'add or remove programs' in windows, and tried to remove itunes from there. it wouldn't uninstall. i racked my brains over the problem, until i found this article, which provided a great deal of help. for anyone who later has this problem, go and download this freeware from microsoft: http://support.microsoft.com/default.aspx?scid=kb;en-us;290301 this program will immediatly remove any unwanted programs with ease, whether they are running or not. after using this program to uninstall itunes, re-install, and your problem should be solved.
    thanks. Alex Dove
    Custom built pc   Windows XP  
    Custom built pc   Windows XP  

  • Drill to link - How can integrate the new browser window inside the report

    Hi, I'm using Discoverer Plus/Viewer 10.1.2.48.18 and I just created successfully a "Drill to Link to an Internet Page" related to my field "Ticket Id"
    So, when, from Viewer, I select the link, a new tab from a new browser session is opend and I see all the details related to the Ticket Id chosen.
    This is right because on the manual is written:
    Discoverer behaves as follows: if you drill out to an Internet page, Discoverer displays the Internet page in a new browser window.
    Now my question is this: is there a way or a workaround to integrate the new browser window's content inside my report ?
    In other words, instead to see the all the Ticket id details (graphs included) in a new browser window, my customer asked me to see these details inside the same report, just below the field with the link.
    Any help will be appreciated
    Thanks
    Alex

    Hi, I'm using Discoverer Plus/Viewer 10.1.2.48.18 and I just created successfully a "Drill to Link to an Internet Page" related to my field "Ticket Id"
    So, when, from Viewer, I select the link, a new tab from a new browser session is opend and I see all the details related to the Ticket Id chosen.
    This is right because on the manual is written:
    Discoverer behaves as follows: if you drill out to an Internet page, Discoverer displays the Internet page in a new browser window.
    Now my question is this: is there a way or a workaround to integrate the new browser window's content inside my report ?
    In other words, instead to see the all the Ticket id details (graphs included) in a new browser window, my customer asked me to see these details inside the same report, just below the field with the link.
    Any help will be appreciated
    Thanks
    Alex

Maybe you are looking for

  • Conversion of string (0x000000)-(0xFFFFFF) into hex

    hi, i would like know solution for this problem. i will get values in the form of string 0x000000-0xFFFFFF or 0x00-0xFF by keyboard. i have to change value,increment(+) by one position and also decrement(-) by one with spinner controls. and i bave to

  • How to link a custom BADI with standard report.

    Hi All, I have a requirement to create a Custom BADI and to link it through the Standard Program. How to do this. As i cannot modify Standard Program. I have put some checks in custom BADI, which i want to be done before anyone runs standard program.

  • Variable on TVARV table

    Hello, we have just upgraded to BI 7.0 and we have the following issue: when I launch a query and I try to select a variable from TVARV value I don't find this option ! Is it deleted this option in the new Bi 7? Thanks!

  • Clusterware Install:root.sh- Failure at final check of Oracle CRS stack. 10

    Hello All, Image: !http://systemwars.com/rac/cluster_back.jpg! I was attempting to perform the steps in: Link: http://www.oracle-base.com/articles/11g/OracleDB11gR1RACInstallationOnLinuxUsingNFS.php The only difference is that I decided to use fedora

  • Hi my macbook pro is 10.5.8

    hi i am living in HK and do they deliver the snow leopard DVD to my door? the background story is that i seldom use my macbook pro and just realized that it stays in the stone age with the system 10.5.8 and i can't transfer my RAW pics to my iphoto b