Thanks,
Actually i want to expire the session at the time of browser close.
Finally i got a solution
<script language="javascript" type="text/javascript">
var clicked = false;
function CheckBrowser() {
if (clicked == false) {
}
else {
clicked = false;
}
}
function bodyUnload() {
if (clicked == false)
{
var request = GetRequest();
request.open("GET", "LogOut.aspx", true);
request.send();
}
}
function GetRequest() {
var request = null;
if (window.XMLHttpRequest) {
request = new XMLHttpRequest();
}
else {
request = new ActiveXObject('MSXML2.XMLHTTP.3.0');
}
return request;
}
</script>
<body onunload="bodyUnload();" onclick="clicked=true;">
<form id="form1" runat="server">