Discussions

Web tier: servlets, JSP, Web frameworks: Session with pop-up problem

  1. Session with pop-up problem (1 messages)

    Hi all,

    We are facing a problem in our web application.

    The application has a pop up window which when the user clicks ok will submit and put a value in session which is displayed in the main window. When accessing the application in the same system in 2 or more browser sessions, the session value set from any pop up window is being displayed in the first browser window and not in the current window that the user is accessing.

     

    Can anyone help me with this issue?

    TIA
  2. Use following javascript on popup window for resubmiting parent window, something like: window.opener.forms[0].submit(); then you will refresh only parent window.

    Also note: That this two browser sessions should have different sessions, then they will display(use) different values. In other cases they use one sessnio scope and get same session values.