public static void ReiniciarSesion()
{
HttpContext.Current.Session.Abandon();
HttpContext.Current.Response.Redirect(Resources.SitePages.Login);
}
public static void ReiniciarSesion()
{
HttpContext.Current.Session.Abandon();
HttpContext.Current.Response.Redirect(Resources.SitePages.Login);
}
[WebMethod]
public static void ReiniciarSession()
{
VSesion.ReiniciarSesion();
}
[WebMethod]
public static void ReiniciarSession()
{
VSesion.ReiniciarSesion();
}
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$("#Reiniciar").click("click", function() {
ReiniciarSession();
});
});
function ReiniciarSession() {
$.ajax({
type: "POST",
url: "TemplateSae.Master/ReiniciarSession",
data: {},
contentType: "application/json; charset=utf-8",
dataType: "json",
async: true,
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert(textStatus + ": " + XMLHttpRequest.responseText);
}
});
}
</script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$("#Reiniciar").click("click", function() {
ReiniciarSession();
});
});
function ReiniciarSession() {
$.ajax({
type: "POST",
url: "TemplateSae.Master/ReiniciarSession",
data: {},
contentType: "application/json; charset=utf-8",
dataType: "json",
async: true,
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert(textStatus + ": " + XMLHttpRequest.responseText);
}
});
}
</script>
<ul>
<li>
<a href="#" id="Reiniciar">
<span>Salir</span>
</a>
</li>
</ul>
<ul>
<li>
<a href="#" id="Reiniciar">
<span>Salir</span>
</a>
</li>
</ul>
<script src="JS/jquery.js" type="text/javascript"></script>
<script src="JS/jquery-1.11.3.min.js" type="text/javascript"></script>