I'm trying to close the browser tab when user clicks on logout button or session expires but i am not able to close the tab
I have tried using the below solution but its not working.
ScriptManager.RegisterStartupScript(this, this.GetType(), "Close_Window", "window.close();", true);
When using the above code I'm getting console warning in the browser.
"Scripts may close only the windows that were opened by it."
Any help will be appreciated.