In a scenario where I have an aspx page that is opened as a popup page using Javascript code, I perform certain actions and store data in a session variable like Session["x"] = data. However, when I close the page, I need to reset Session["x"] to null. How can I achieve this? Should I handle it at a specific event within the page or on the Javascript side?