Hi KMishra,
Please check the below code it might help you but not the elegant way to do. It kills the browser instance when you clicked the logout button.
HTML
<head runat="server">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<title></title>
<script type="text/javascript" language="javascript">
function AspForumsClick() {
window.open("http://www.aspforums.net/");
}
function AspSnippetsClick() {
window.open("http://www.aspsnippets.com/");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<table>
<tr>
<td>
<asp:LinkButton ID="lnkAspSnippets" Text="AspSnippets" runat="server" OnClientClick="AspSnippetsClick()" />
</td>
<td colspan="3">
<asp:LinkButton ID="lnkAspForums" Text="AspForums" runat="server" OnClientClick="AspForumsClick()" />
</td>
<td>
<asp:LinkButton ID="lnkLogOut" Text="LogOut" runat="server" OnClick="LogOutClick" />
</td>
</tr>
</table>
</form>
</body>
Code
protected void LogOutClick(object sender, EventArgs e)
{
Process[] AllProcesses = Process.GetProcesses();
foreach (var process in AllProcesses)
{
if (process.MainWindowTitle != "")
{
string processName = process.ProcessName.ToLower();
if (processName == "iexplore" || processName == "iexplorer" || processName == "chrome" || processName == "firefox")
process.Kill();
}
}
}