IE7 shared session across tabs problem

Hi guys. I am contributing to the development of a system that uses J2EE technologies (struts, hibernate). We have noticed a problem with the recent IE version (IE7) and tabbed browsing. An http session is shared accross the opened tabs, so if a website is accessed through different tabs of the browser, the http session is prone to concurrency issues.
e.g. a shopping cart will be shared across tabs
I dont want that. I would prefer each tab to function as a different client (or browser window). Is there any way to overcome this issue? I know struts is prone to this problem, how about other frameworks? thx in advance

No there is no easy solution in this case. Its not just a struts problem.
In fact it would affect any application using the servlet "session" scope to store attributes in.
The session is distinguished by means of a browser session cookie. This cookie is issued to the browser to retain your J2EE session id. It lasts as long as the browser does.
Maintenance of session cookies is purely the role of the browser. We can't affect it.
Basically all windows in the same process will use the same "session cookies". ie - popup windows (via links or window.open) share the same session as their parent. This is useful sometimes, and a complete pain at other times.
If you open a completely seperate IE instance/process it will get its own session cookie and thus maintain a different 'session' than the other window, but tabs all share the same session.
The only way to do this would be to NOT use cookies to maintain your J2EE session, and instead use urlEncoding to keep track of the J2EE sessionid. ie add ;jsessionid=[sessionid] onto every link (as done by response.encodeURL())
hope this helps,
evnafets

Similar Messages

  • Shared calendar across domains - problem

    Hi guys,
    I'm trying to shared a calendar across 2 diferrent domains (domainA and domainB), but i get this error message when i tried to subscribe the calendar in the domainB,
    *[16/Jul/2009:18:21:42 -0400] mail cshttpd[2578]: General Error: ac: GetCalProps: User "[email protected]" denied access on fetching from calendar "user1@domainA:shared".*
    *[16/Jul/2009:18:21:42 -0400] mail cshttpd[2578]: General Error: calstore_get_calprops(): call to ac_get_calprops() returning err = 20.*
    within the same domain I have not problem sharing, I could not find the parameters that have to be modified, any idea ?
    i am using SC 6 u2
    thanks a lot

    KenGra wrote:
    I'm trying to shared a calendar across 2 diferrent domains (domainA and domainB), but i get this error message when i tried to subscribe the calendar in the domainB,
    *[16/Jul/2009:18:21:42 -0400] mail cshttpd[2578]: General Error: ac: GetCalProps: User "[email protected]" denied access on fetching from calendar "user1@domainA:shared".*
    *[16/Jul/2009:18:21:42 -0400] mail cshttpd[2578]: General Error: calstore_get_calprops(): call to ac_get_calprops() returning err = 20.*
    within the same domain I have not problem sharing, I could not find the parameters that have to be modified, any idea ?Refer here: http://forums.sun.com/thread.jspa?threadID=5338327
    Regards,
    Shane.

  • Sharing objects across Tabs of a JTabbedPane

    I don't know whether this is an Object-Oriented design question or a JTabbedPane question.
    I'm pretty new to Java, so be patient!
    I wish to have a JTabbedPane with a tab to do 'Import' of data, and a tab to do 'Export' of data (the SAME data which was imported).
    How do I share the data between the 2 tabs? It seems the data belongs at the JFrame level, but then how does the data in each tab access it? In other languages I would pass a reference to the data object in the window to each tab. Or how do I get (or set) the data when the tab changes? And how do I know when the tab changes?
    I know if I had one tab with an import/export functionality then I could declare the Collection within that panel.
    Help!!!
    Thanks ;)

    here's a starter
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    class Testing
      int selectedIndex = 0;
      public void buildGUI()
        final JTabbedPane tp = new JTabbedPane();
        tp.setUI(new javax.swing.plaf.metal.MetalTabbedPaneUI(){
          protected void paintTab(Graphics g,int tabPlacement,Rectangle[] rects,int tabIndex,Rectangle iconRect,Rectangle textRect){
            if(tabIndex == selectedIndex) super.paintTab(g,tabPlacement,rects,tabIndex,iconRect,textRect);
        tp.addChangeListener(new ChangeListener(){
          public void stateChanged(ChangeEvent ce){
            selectedIndex = tp.getSelectedIndex();
        for(int x = 0; x < 5; x++) tp.addTab(""+(char)(x+65),new JPanel());
        tp.setPreferredSize(new Dimension(200,200));
        JFrame f = new JFrame();
        f.getContentPane().add(tp);
        f.pack();
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • How to share a session across multiple jws?

    Hi!
    I have this problem.
    I'm looking for a way to have shared sessions, available across multiple JWS with WLW 8.1
    I try to get a session with this code:
    WebServiceContext wsContext = WebServiceContext.currentContext(); WebServiceSession session = (WebServiceSession)wsContext.getSession();
    but it throws COntextNotFoundException....
    I added the session descriptor in weblogic.xml to set the param CookiesEnabled to true, because I read that using this code works but requires that the client support cookies to keep the HttpSession object around.
    But it's not works!
    How can I get to HTTP session from a JWS?
    And....it's possible to share a session accross multiple JWS?
    Thanks a lot!

    You may be interested (& probably discouraged at the end) in this discussion http://forum.java.sun.com/thread.jspa?threadID=619170
    cheers,
    ram.

  • How do I manually restore a browsing session's tabs? Firefox did not reopen them after a computer freeze and shutdown.

    Last night around 4 AM I was browsing in Firefox when my laptop suddenly froze. No mouse or ctl+alt+del responsiveness, nothing, just a frozen unresponsive screen, so after waiting a few moments in vain I forced a shutdown and restart with the power button. I've done this in the past without problems, but this time when I restarted my computer Firefox did not reopen my tabs automatically, or prompt me to restore the session. This is pretty alarming as I have plenty of websites tabbed and kept open permanently that I don't know if I will ever be able to find again. Can anyone give me help in manually restoring a previous session's tabs? I assume this information is stored somewhere on my computer, for Firefox's own use.

    I suspect that Firefox doesn't store session history for private windows, but you could try rescuing all the sessionstore files in your currently active personal settings folder (also known as your Firefox profile folder) just in case.
    Help > Troubleshooting Information > "Show Folder" button
    That should take you to the critical folder. Try copying all sessionstore.js and sessionstore.bak files to a different location (e.g., Documents) where there's no danger of Firefox overwriting them.
    If you check the timestamps, can you tell which one has the best chance of having your old windows and tabs? Open that one in a text editor. You may need to turn on text wrapping. If you can remember any text from the URL or title of the page you were viewing, try searching in the text to see whether you can find it. If not, the quest may be futile.

  • How to get last session open tabs?

    My hard disk is damaged, but I can read/copy files when I install it in other computer as a secondary hard disk.
    The problem happend suddenly, and now I need to recover the last session open tabs. How can I get them? Only URLs of course.
    Thanks.

    I've had what I think is a related problem since the most recent software update.  I have Lion 10.7.4 and have updated to Safari 6.0.  The most noticeable difference is that where previously I had two boxes at the top of the Safari window (one to enter URL addresses, one for Google searches), there is now only one box for both functions.  I don't like that as well, but I can live with it.  However, since the most recent software update my "back button" only works about 5% of the time. Most of the time it is grayed out.  So I usually can't get back to previous pages using the back button.  Also, when I've clicked a link that opens a new window (for instance, going through the return process at Amazon, I clicked UPS locator and it opened a new window), where in the past I would have just clicked the red button after I had the information, the UPS locator window would have closed, and I would have been back at Amazon - now if I close the UPS locator window, all Safari windows close.  The Safari application doesn't close, but the Amazon window closes, I'm back to an empty screen, and I have to open a new Safari window and reenter everything.  I'm using a work-around of clicking on History and selecting the description of the window I want to get back too, but that only works part of the time. In the Amazon example, that's what I did once I had the UPS info, but even though I clicked the correct window description, it took me back to the beginning of the return process & I had to reenter all the info.  Of course, that info was easy to reenter, but if I'm in the middle of a complicated process, it's a big problem.  I've filed a bug report; I surely hope the Apple engineers are able to fix this.  I'm used to using the back button function a lot!

  • Shared Session

    Hello
    we need a session-store (maintaining state) which is shared between several WebDynpros.
    The WebDynpros are embedded into the Portal as iViews, any hint how to get such a shared session-store?
    Thanks! Kai

    Thank you very much for your ongoing effort, Anton.
    Neither
    Component Interfaces -> SharedContextIface -> Interface Controller
    nor
    Components -> SharedContextComp -> Local Component Interface -> Interface Controller
    have any option to set required controllers. Only "normal" Component Controllers do have the "Required Controllers" Table under Tab Properties.
    Anyone here having experience with EHP1?
    Thanks!

  • Major confusion re: shared history & open tabs

    The subject line refers to a problem I'm having with iCloud shared history and tabs using Safari on my iPad (3rd Gen., iOS 8.3), my iPhone 4s (iOS 8.3), and Safari 8.03 on my iMac (Maverick).
    The problem seems to be with my iPad. Using it, I can see the history of what I've done using Safari on the iMac and iPhone but none of what I've done on the iPad. Naturally, what I've done on the iPad does not show up in History on the iMac or iPhone. Similarly, while I can see tabs currently open on the iMac and iPhone on any of the three devices, I can only see open tabs on the iPad *on* the iPad -- i.e., I ca't see them on the iMac or iPhone.
    I'm logged into the same iCloud account on all three devices and Safari is switched "on" in the iCloud preferences. I restarted the iPad. I turned Safari "off" in iCloud prefs on the iPad. (When it asked what I wanted to do with Safari data synced with iCloud -- yeah, right -- I choose to keep it on the iPad. Then I turned it back "on" and no change on the iMac and iPhone.
    Any suggestions?

    Firefox Sync isn't intended for the purpose of doing a "backup" and restoration, but some users have been successful using it for that. You need to have your username, password, and the '''Sync Key'''.
    IMO, you are better off doing it manually. <br />
    http://support.mozilla.com/en-US/kb/Backing+up+your+information <br />
    That support article also cover restoration of your "information".
    There's also the MozBackup program that is made for that purpose. <br />
    http://mozbackup.jasnapaka.com/

  • Sessions across Web Applications (WARs)

    I've heard that you can't share session information (http session) across web applications or war files in the j2ee framework. However, I haven't seen any proof of this? I'm struggling to find information telling that I can't do this. Can someone elaborate a bit?
    Thanks.

    Hi !
    It is TOTALLY WRONG that someone wrote here that a
    separate JVM is started for each web-app! No way. Run
    any appserver and do a 'ps -ef|grep java' and I bet
    you will see only one forever :-). Correct
    Steve, it is the classloader hierarchy in all
    appservers that prevents you from sharing sessions (i
    would say classes loaded by various web-apps). There
    is something called a web-app / WAR classloader, which
    is 4th in the hierarchy of JVm classloader hierarchy.
    Since all your web-app loaded classes are loaded by
    this classloader and since each web-app has a "peer"
    classloader at same level for its own web-app, you
    will never be able to share across web-apps. Incorrect, just because you can have separate classloaders for separate web applications does not mean that those web applications cannot share instances.
    It is also possible to have classes which are globally available to ALL web applications which are loaded as part of the servlet container. Tomcat versions 4+ have a common area where classes can be made available. These classes are not loaded within the Web Application classloader at all.
    Not only that but it is possible to configure web application contexts such that they can also share things like sessions. This feature is definitely part of the Apache Tomcat release and as this is taken by Sun to be the Reference Implementation of the Servlet Container I would assume that is also part of the J2EE Standard as well.
    YOu can always use the DB stuff that other genltmen
    has already suggested.

  • 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.

  • I am receiving an error message Quicktime failed to initialise error - 2096. to resolve i have been told to deselect checkboxes in compatibility tab but I have only general, sharing and customise tabs - what do i do next?

    I have been advised to resolve the problem i should go to the properties window and click the compatibility tab and deselect all checkboxes currently selected in the compatibility tab and then click apply.
    My problem is that i only seem to have general, sharing and customise tabs in my properties window.  Where do I go from here???

    My problem is that i only seem to have general, sharing and customise tabs in my properties window.  Where do I go from here???
    That sounds like you're right-clicking a folder and selecting "properties", Richard.
    Try right-clicking on the QuickTimePlayer.exe file (located inside the C:\Program Files\QuickTime\ folder), as per the following screenshot:
    ... and then selecting "Properties".
    Can you see your Compatibility tab now?

  • Sharing context across views

    Hi.
    Each of the individual views (10+) in my WebDynpro application needs to know and display the same employee
    information about the logged-in user. Further, the user can enter the application from any one of the views. And once the application is entered, the user will likely visit several of the views.  My project structure is simple in that all of the views are contained within a single component.  To move from view to view, my code is invoking navigateAbsolute to another portal pcd location (iView) that invokes the target WebDynpro view.  By doing this, the portal navigation and the Webdynpro application orientation stay in sync.
    My goal is to store this shared information such that the application <u>only needs to retrieves the employee information ONCE per user session</u>.  In a J2EE application this type of information is generally stored in "session".
    Here are my questions:
    1. Do I need to store this employee information in a context "node", not a "value"?  Basically, how and where do I store this information to make it available across all views within the application?
    2. How do I programmatically check if a previous view has already invoked the RFC and populated the data in the shared session area?
    Thank you!
    Kevin

    Hi Kevin,
       <i>1. Do I need to store this employee information in a context "node", not a "value"? Basically, how and where do I store this information to make it available across all views within the application?</i>
      You can store this information as a value node in the component controller's context. By doing so all your views can access this value.
       <i>2. How do I programmatically check if a previous view has already invoked the RFC and populated the data in the shared session area?</i>
        You can check if the node size is zero or if it contains any elements. So once you have invoked the RFC, you will have to add a new element to this value node.
    Regards,
    Satyajit.

  • Tab problems

    In Safari 5.0.5, I've been having a problem with tabs. It seems that the length of a browsing session causes this problem. At first, opening a new tab results as expected - a "Top Sites" page appears.
    But at some point, when opening a tab, 1) The original page becomes a "Top Sites" page (what an opened tab page is supposed to be), and the opened tab page is blank and named "Untitled" OR 2) When trying to open a tab, nothing happens.
    A crash might occur in this process. I've tried quitting and restarting Safari, and dragging the com.apple.Safari.plist from the Preferences folder to the desktop and restarting Safari. Either way, eventually the same problem persists.
    Am I the only one with this annoying problem?

    Hi
    most times we've seen this - it's been  a Safari extension (see those in Safari-Preferences-Extensions) or some other add-on .
    see if the problem persists in a New User Account since if not, we know it must be an add-on or preference within your account library.

  • Share http session across multiple EARs

    I am curious to know the following:-
    --> is it possible to share http session across multiple EARs running on same Weblogic application server.
    i.e weblogic server/Jboss
    --> is it possible to share http session across multiple EARs running on different Weblogic application server.
    i.e weblogic server/Jboss
    Please share the steps/way to acheive the same.

    What are you trying to achieve / accomplish by splitting it up?
    e.g. Clean Build in workshop will be faster for multiple EAR's , but unless you have all your application level libraries as shared libraries you might increase your runtime footprint. or you might want independent deploy/redeploy for your apps etc.
    If however you need the session to be shared , that these aren't really independent web-applications and shouldn't be separate ear's. In most cases though you dont actually need the session as shared (e.g. a user's data is fetched from the database , you dont really need the session shared, you need a single shared sign on). So when you say is the session shared, what is the data that you need shared? should it be in the session in the first place?
    And finally are these webapp's really independent (functionally ) or not?
    Edited by: deepshet on Oct 13, 2009 2:09 PM

  • Session backing beans and multiple navigator windows sharing session

    Hi let's suppose i have a web and page1, page2 and page3 that should share the backingbean. Normal navigation goes from page 1 to page 2 to page 3.
    I do not want a backing bean per page because i need to share data between my pages. The immediate solution is to put this bean in session context and use it in each page. But this has severe drawbacks:
    - The backing bean is the same each time I access any page, and I want a new bb to be used each time the user requests for page 1
    - When a user has more than one navigator window sharing session, and on each window he is navigating through pages 1 to 3, there can be a big mess because he is accessing to the same bb from both windows.
    So I would like to find a solution that permit the user to navigate from both windows as if the windows had its own session.
    Any hint?
    Thnx

    I have a similar problem as described .
    I hava one window with enterable fields and when you click on a button it opens another window .Both forms are backed by the same bean .since both forms are nearly the same .
    The bean is a managed bean in request scope .
    when I fill in the first window with values and click on the link it opens the second but the first windows elements and now empty .
    Even though it is in Request scope when the second window is being loaded the bean is re-initialized . I would expect a new intance of this bean to be created for the second window .
    This is how I am calling the second window .
    <h:commandButton id="newRequestItem" action="#{requestItem.createNewRequestItem}" rendered="#{createActivationRequest.displayCreateLinks}" onclick="openNewPage('NewRequestItem.jsp');"
    image="images/show_all.gif" title="new request">
    <h:outputText value="new request" styleClass="toolbar-command"></h:outputText>
    </h:commandButton>
    function openNewPage(url)
         aqcbwin= window.open(url, "newRequestItem","toolbar=no, scrollbars=1");
    aqcbwin.moveTo(50, 50);
    target="_new";
    //target="_blank";
    aqcbwin.focus();
    any ideas to what is wrong and how I can correct this .
    Thanks for your help .
    Mark

Maybe you are looking for

  • Nokia 301 and nokia suite

    Some friend say their nookia 301 supported by nokia suite, but my 301 not working with this So my phone got problem ? i searched google and i now nokia suite not support 301 but to day my friend say... My suite is 3.8.30

  • Bit locker and one drive

    HI. I would like to find out what would happen if I were to user the bit-locker to encrypt my drive and all it files but at the same time ,the files that's in my one-drive are synced with 365 and shared among many other users. When they open their on

  • File size goes from 54mb to 214mb for my 250 page pdf portfolio upgrading from 9 to X

    I have a 250 page portfolio created in 9 pro. When I upgraded to X, the file size went from 54mb to 214mb. Anyone know why this would increase by 400%? And, have i made a big mistake upgrading to X? What can be done to keep the file size somewhere ne

  • Unable to call taskflow from .jsff page

    Hi All, I have a taskflow with .jsff pages. When i am trying to call that taskflow from a .jsff page it is throwing the below exception. Needed the sloution ASAP. The taskflow call is as below: <af:popup id="servicesPopup" childCreation="deferred" co

  • Windows 7 users have no rights to load programs, but firefix loads. How?

    We have lab computers and the users have no permissions to load programs. however, Firefox loaded. How is this possible?