In the window opened with Window.open, sometimes the session variable will be lost and give it to the ASP programming. Use parameters to resolve it: