I want to open a new window when a user enters some data and clicks a button on the current window. I used the window.open() in the onclick event of the button to open the new window. I already used session variables to store and pass the data that the user entered, but the problem is it works fine for the first time. Later on when I tried by entering a different value, it still shows the old value in the new window. Actually i have written code to change the value of the sessionvariable, when a user enters a new value and i gets the correct result (new value of the session variable) in the old window. From that page only i clicks a button to open the new window still it shows the old value.