Session lost (IE5 & IE6) when opening popup window.

Ok, I've been struggling with this problems for days and spent countless hours with google without finding any decent solutions.
I'm building a ecommerce site and if the user want to see additional information + pictures from a product, he/she can open a popup window that also has "add to cart"-submit field.
UserID and some other necessary data is kept in sessions but IE5 / IE6 seems to loose these in this new window when opening it via javascript (popup).
If I have understood right, the session is lost because IE considers the new window as a new task and therefore it is out of the "session scope".
Ok, one might say that using encodeUrl()-method should fix this problem, but no it doesn't. encodeURL()-method writes the session to URL only when user has disabled the cookies and in my situation it's not the case.
Has anyone here been struggling with the problem above ? I've been considering if I encode the UserID and other information manually to the URL and decode it back in the popup, but that brings n+1 security issues to my mind and doesn't really sound like a decent solution.
Thanks in advance,
- Roni
p.s: Sorry about my crappy english.

Hmm,
I did a small test and managed to get the sessions to work with IE.
the main page:
<%@ page language="java" %>
<%
session.setAttribute("foo", "bar");
%>
<html><head><title>sessiontest</title>
<script language="javascript" type="text/javascript">
<!--
function popUp(URL) {
options="toolbar=no,directories=no,location=no,status=no," + "menubar=no,scrollbars=yes,resizable=yes,width=416,height=465, left = 362,top = 184";
var Infowindow=window.open(URL, "Infowindow" ,options);
Infowindow.focus();
-->
</script>
</head>
<body>
sessionattribute <b>foo</b> has value <b>bar</b><p>
<a href="javascript:popUp('<%= response.encodeURL("sessiondebugpopup.jsp") %>')">link to popup</a>
</body>
</html>popup:
<%@ page language="java" %>
<html><head><title>sessiontestpopup</title>
</script>
</head>
<body>
attribute value is:<p>
<b><%= (String)session.getAttribute("foo") %>
</body>
</html>This works just fine, but the code in the actual application does not differ from this.
Only difference I can figure out if that the .js popup() function is located in header.jsp and the call to the popup is in other .jsp that includes the header.
Here's the call to the popup in the application:
<a href="javascript:popUp('<%= response.encodeURL("pop.jsp?prod="+ rs2.getString("tuo_tuonro") +"&img="+ cnt.getPictureURL(rs2.getString("tuo_tuonro"), cnt.getUserId(user)))%>')">link</a>And the above code works just fine with firefox/opera/etc, but not with IE5/IE6 (haven't tried other IE versions though).
This is really getting annoying.

Similar Messages

  • How to create a button to get File Open popup window and select a file

    Hi,
    I have an applet that contains Browse button. When user clicks on that, a File Open popup window should be displayed to enable user to select the input file. This file path should be given back as parameter.
    How to do this? I have tried using LoadFileData but not able to get the desired result.
    Any pointers would be helpful.
    Thanks,
    Lalitha Dandibotla

    Do you need only the path or also the file back into Siebel?
    If you need both, the have a look at any attachment applet, that will give you a good start.
    Are you using Siebel in High Interactivity (HI) Mode or Standard Interactivity (SI) Mode?
    If you are in SI Mode have a look at the html type
    <input type="file">
    http://www.w3.org/TR/html401/interact/forms.html#h-17.4
    Axel

  • Open popup window and redirect user to home page in sandboxed solution

    i've created a sandboxed solution visual webpart and it has submit button so when user fills the information in the text boxes availble in webpart and clicks submit button so I want to open popup button containg success message and ok button so when user
    clicks ok button in popup window i want user to be redirected to the home page of the site.
    i tried to open popup and showed success message by below code
     string gotohomepage = "http://sp2013:1111/Pages/home.aspx";
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Your Record has been submitted successfully,you will be redirected to home Page shortly');location.href =
    '" + gotohomepage + "';", true);
    but it's not opening popup window can anyone help how do i open popup window and redirect user to home page in sandboxed solution

    Page class and script manager are not supported in sandbox solution
    You can create model popup to achieve this
    below are the reference links
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    http://social.msdn.microsoft.com/Forums/en-US/9427db4d-60f2-4b2a-8db6-b50d01ac4f23/how-to-create-modal-popup-using-sandboxed-solution

  • Javascript to open popup window and disable parent window

    Hello,
    Can anyone please help me the javascript issue.
    I have a button which opens up a pop window and when this popup window is opened i want to disable the parent window and enable it when i close the popup window.
    can anyone please help me with a possible approach.
    Thanks,
    Orton
    Edited by: orton607 on Aug 25, 2010 2:19 PM

    jari,
    I have a problem with this modal window approach and I have noticed. The thing is I am able to open up a popup window which is a simple data entry form. In this form i have the button Create which calls a javascript function and then an pl/sql insert process.
    Below is the javascript function for the button create
    function createNew()
    doSubmit('CREATE');
    alert('Successfully inserted the record. Click OK to close popup window and to \n view details of the new inserted record please select the table on parent window.');
    window.close();//close the popup window
    window.opener.doSubmit('REFRESH');
    //call doSubmit function on the parent window to cause the page to refresh.
    }The problem, i have is when i open up a popup window in this window when I click on the create button, its again opening up a new empty window. i don't understand what might be the problem.
    can you please help me out with this one.
    thanks,
    orton
    Edited by: orton607 on Aug 25, 2010 4:19 PM

  • Error: Open popup window failed

    Hi,
    I'm opening a web page in an StageWebView and by trying to click a link that should open a window, I receive this error:
    [StageWebView] Error: Open popup window failed
    This is the link "Invite your friends" at Google:
    https://developers.google.com/+/web/share/interactive#myBtn
    How to fix that? I hope anybody got an idea!

    This is a javascript/html question, and has nothing to do with Java/JSP.
    You could do it with plain javascript/html using window.opener.
    I would recommend using something like a [YUI 2 Panel|http://developer.yahoo.com/yui/container/panel/] to do it.
    Opening new windows is a thing of the past.

  • When opening a window i keep getting C:\program files\mozilla firefox\eula exe; then i get no web page

    when opening a window i keep getting C:\program files\mozilla firefox\eula exe; cant find file

    Thanks my friend it worked perfect

  • HT201320 lost bottom banner when open "mail" cannot delete e-mails?

    lost bottom banner when open "mail" cannot delete e-mails?

    Close the mail app. Then double tap on the home button to bring up the multi-tasking bar. Swipe upwards on the mail app. Reset the phone. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. Once the phone reboots, try opening mail and see if this returns.

  • Fading background when opening new window

    Fading background when opening new window. I would like to do a "lightbox" effect that on mouseclick opens a new window over the top of the other windows(s) that has a close button to take the user back to the previous page. I have viewed this in the past, but now cannot find examples. If you have URLS of examples, or better yet, code to make this happen, that would be helpful. Thoughts and opinions on why I shouldn't use this effect are also welcome!

    If you need a lightbox effect, use one the freely available "lightbox" or modal window scripts.
    Fancy Box is well documented and works with images, text, iframes, Google Maps, media, etc..
    http://fancybox.net/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Recently when opening a window a spining multicolored pinwheel replaces the cursor. what's going on?

    Reccently when opening a window a spining multicolored pinwheel replaces the cursor. what is going on?

    I'm not an expert on this, but it could indicate different problems. I assume that the pinwheel goes away after a while. If not, then seems that the activity in the window is locked up.
    You might look at the memory usage on your computer. Open Activity Monitor in your Utilities folder and look at the memory usage on your computer. You may not have enough ram.
    If you hadn't shut down and restarted your computer lately, you may try doing that to see if it clears up temp files and free up some memory. If you don't have enough memory, try closing other applications to see if it helps any.
    You can also look at the CPU usage in Activity Monitor to see what's using up any high percentage of the CPU.

  • Open popup window and bring text to opener window jsp [help~]

    how to click a button then open popup window.
    and add somthing in the popup window, that can bring the text in the popup window to opener window in jsp.

    This is a javascript/html question, and has nothing to do with Java/JSP.
    You could do it with plain javascript/html using window.opener.
    I would recommend using something like a [YUI 2 Panel|http://developer.yahoo.com/yui/container/panel/] to do it.
    Opening new windows is a thing of the past.

  • Firefox should save session when only popup windows is open

    When I have some window with multiple tabs open and I click close button on top, it saves the session and quits. Thats ok. But when there is some hidden popup window open (or source code) it destroys the session and leaves the popup open!!!! So the menu is gone and you lose your session. When i restart FF tabs are gone. So it should save session when only some popup windows are open.
    Also it should ask what to do when i click close window, when it's unclear what to do

    It is always a good idea to close a Firefox session by clicking File > Exit or Firefox button > Exit for proper shutdown.
    Those pop-up windows are produced by JavaScript. JavaScript can disable certain features in the pop-up window. You can set some preferences using '''about:config''' so that those features are not disabled in the pop-up window. See:
    *How to use '''about:config''': http://kb.mozillazine.org/About:config
    #type '''''about:config''''' in the URL/Location bar and press the Enter key
    #if you see a warning, accept it (promise to be careful)
    #Filter = '''dom. disable_window_open_feature.'''
    #reset preferences you want to '''''false''''' by double-clicking on that preference in the lower panel on the '''about:config''' tab
    #Preferences you can reset in this case: http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe PDF Plug-In For Firefox and Netscape "9.4.3"
    *Shockwave Flash 10.2 r159
    *Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • Losing original session when opening new window

    I have an application that opens a new child window that form submits
    to another application on another server. When this happens the other application server automatically creates a new session, wiping out the original session in the parent window.
    Is there a way to open a window with a new session such that this new session is seperate from the original and won't kill the session when you click back on the parent window?

    I've dealt with this before. I'm not sure what appserver you're using, but weblogic allows you to speciy the session cookie name used by the web application. So each one of our apps have a different session cookie name (never the default JSESSIONID which would be shared). So in your situation, the app in the new window would be using a different session cookie so it would never overwrite the original window's cookie. I'd imagine most containers allow this type of configuration...just not sure. In weblogic, you defing the cookie name in the weblogic.xml file(deployed with each webapp). Here's what it looks like...
    <weblogic-web-app>
    <session-descriptor>
    <session-param>
    <param-name>CookieName</param-name>
    <param-value>MYAPPSCOOKIENAME</param-value>
    I'd also suggest that you completely leave the default (JSESSIONID) completely out of your cookie name. I've heard some containers use the indexOf function to find the cookie.... so MYAPPJSESSIONID and JSESSIONIDMYAPP might possibly be picked up. I'm not sure of this though, but was chatting with a co-worker who told me.

  • How do I play a sound when a popup window opens.

    I don't want to block the popup. It's just a notice of a timeout for a site I frequent. I want to enable a sound to play when the popup appears so I know the site is about to time out. I'm using Firefox 35.0.1 on a MacBook. Thanks in advance for any help!

    You may need an add on or third party software for this.

  • When closing Popup Window it does not ask "discard data?" dialog

    We have a popup window to create/update a record. When we click on 'Close Window' on this popup window with unsaved changes it does NOT show the dialog popup - "The changes you have made to this page have not been saved. If you continue, the changes will be discarded. Do you wish to continue?"
    What do I need to do to ensure the dialog popup is shown so that the underlying VO/EO are left in a consistent state before closing the popup window?
    At the moment, if the user navigates to the popup window a second time in the same session the EO cache is retained and causes create to fail.
    Regards
    Firoz

    The message you are talking about is a Warn About Changes message and it shows only if the user tries to navigate away from the page page without committing/rollbacking the data.
    As far as Window close is concerned check whether the windows.close() could be handled using Javascripts. As far as OA framework is concerned I would recommend you do not retain the AM while the pop up window is opened. This way no data from previous popup would be available. Just make sure that you pass sufficient parameters to initialize the popup everytime.
    Regards

  • File is empty when opening in Windows CS2 after saving from Leopard CS3

    I have CS3 installed on my new Mac running Leopard. When I save a file and take it to my windows machine running CS2, I get a message that "the file was created by a newer version of Illustrator, and some data may be lost." Most times it just opens a empty file. Is there a way to prevent this from happening, without installing CS3 on my windows machine?

    In CS3 click SAVE AS and save as CS2 file. Then try opening on Windows machine.

Maybe you are looking for

  • Incoming email Settings is not working

    I have configured Incoming Email Settings by using msdn link http://technet.microsoft.com/en-us/library/cc262947(v=office.15).aspx#ConfigureDropFolderPerms .I cannot recieve emails in my document library ,mailroot/drop folder is empty.I am not able t

  • Indesign CC 10.0.0.70 can't undo

    Hi, i am using Indesign CC for a while now. While an upgrade of Indesign on mac was needed to open CC files, from pac,  in another CC version (thx Obama) i now lost the undo function in Indesign CC 10.0.0.70 for mac OSX 10.9.5). Did anyone run into t

  • Ubuntu: no screen display

    I have recently been subjected to a nice friendly hard drive wiping by my eMac, and i have no mac OS X disk, so i thought I'd get ubuntu on it until i can afford OS X again. having downloaded the PPC iso and burned it onto my disk, i booted it , and

  • System requirements for MUSE

    I have an "older" Mac Pro (2006) and am wondering if I can run Muse on it? Will it work with Creative Cloud? Model identifier: MacPro 1,1. Processor 2x2.66 GHz Dual-Core Intel Xeon. OS 10.6.8. I currently use CS 5.5 Design Premium. Thanks for any wor

  • Help: I think i deleted some imp files

    1)  i deleted a lot of applications that i do not use to make more space. I followed steps online to deleted application support data etc. What has happened now is that i see a ? on my doc. I can remove the ? but when i reboot the mac they appear aga