Hola amigos termine por fin de hacer un sistema de paginacion de datos, pero me encontro con el inconveniente que quiero cerrar mi sesion y no se como hacer esa sintaxis, aca abjo les dejo el codigo, lo que quiero hacer es un link a cerrar session y cuando precione en el me direccione a index.asp
El codigo usado es:
index.asp
<% response.buffer = true %>
<link rel="stylesheet" type="text/css" href="default.css">
<% if session("pass")= true then
response.redirect"paginar.asp"
else
if request("pass")<>"" then
if request("pass")="xxx" then
session("pass")=true
response.redirect"paginar.asp"
else
response.redirect "index.asp"
end if
end if
%>
<!-- #include file='i_header.asp' -->
<!-- #include file='i_menu.asp' -->
<HTML>
<body >
<form method="POST" action="index.asp">
<div align="center"><center><p><input type="password" name="pass" size="10"><br>
<input type="submit" value="Login"></p>
</center></div>
</form>
<!-- #include file=i_footer.asp -->
</BODY>
</HTML>
<% end if %>
paginar.asp
<% if session("pass")= false then response.redirect "index.asp"%>
<% session.timeout = 15 %>
<%
Response.Buffer = True
%>
<html><head>
<link rel="stylesheet" type="text/css" href="default.css">
<title>.:: InfoSistemasWeb 2002 D.C >>>Sistema de Paginación Ver. 1.1 ::.
</title>
<script language="Javascript">
var vie=
parseFloat(navigator.appVersion.slice(navigator.ap pVersion.indexOf("MSIE")+4,navigator.appVersion.le ngth));
function sinmenu()
{
event.cancelBubble = true;
event.returnValue = false;
return false;
}
function noclicderecho(e)
{
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
else
if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
{
if (vie < 5) // -- para el IE4 -- \\
{
alert('Puedes personalizar este mensaje');
return false;
}
else
if (vie >= 5) // -- para el IE5 -- \\
{
document.oncontextmenu = sinmenu;
return false;
}
}
return true;
}
document.onmousedown=noclicderecho;
// -- Desabilita el clic derecho en las capas (layers) -- \\
if (document.layers)window.captureEvents(Event.MOUSED OWN);
window.onmousedown=noclicderecho;
</script>
<frame><noframe></frame></noframe>
</head>
<p> </p>
<div align="left">
<table border="1" width="99%" height="121" id="AutoNumber1">
<tr>
<td width="100%" height="19"><font color="#FF0000">NOTA IMPORTANTE:</font><p> </p>
<p> </p>
<p><font color="#FF0000">ESTE ES UN ESPACIO PRIVADO, SI UD. A INGRESADO
A EL EN FORMA ERRÓNEA POR FAVOR SALIR POR DONDE HA INGRESADO Y ENVIAR UN
EMAIL A:</font>
<a href="mailto:
[email protected]?subj ect=Usuarios no permitidos en paginación de datos">
WEBMASTER</a></p>
<p> </p>
<p> </p>
<p align="center"><font color="#FF0000">Dirección IP Grabada:<b> <!-- #include file="easyip.asp" -->
</b>[tu dirección IP ha sido grabada en nuestro sistema por seguridad]</font></td>
</tr>
<tr>
<td width="100%" height="83">
<p align="center"> </p>
<p align="center"><font color="#0066CC">PAGINACION DE DATOS VER. 1.1 -
DESARROLLO POR INFOSISTEMASWEB.COM.AR</font></td>
</tr>
<tr>
<td width="100%" height="3">VER PAGINACION DE
<a href="paginar_foros_home.asp">FOROS HOME</a></td>
</tr>
<tr>
<td width="100%" height="3">VER PAGINACION DE DATOS
<a href="paginar_libro.asp">LIBRO DE VISITAS</a></td>
</tr>
<tr>
<td width="100%" height="3">VER PAGINACION DE DATOS
<a href="paginar_forosoporte.asp">FOROS SOPORTE</a></td>
</tr>
<tr>
<td width="100%" height="2">VER PAGINACION DE DATOS
<a href="paginar_registro_usuarios_home.asp">REGISTRO DE USUARIOS
HOME</a></td>
</tr>
<tr>
<td width="100%" height="2">VER PAGINACION DE DATOS
<a href="paginar_colaboraciones.asp">REGISTRO DE USUARIOS
COLABORACIONES</a></td>
</tr>
<tr>
<td width="100%" height="2">VER PAGINACION DE DATOS DE
<a href="paginar_mailing_list.asp">MAILING LIST</a></td>
</tr>
<tr>
<td width="100%" height="1">VER PAGINACION DE DATOS DE
<a href="paginar_downloads.asp">DOWNLOADS</a></td>
</tr>
<tr>
<td width="100%" height="1">VER PAGINACION DE DATOS DE
<a href="paginar_comentarios2.asp">COMENTARIOS</a></td>
</tr>
<tr>
<td width="100%" height="2"></td>
</tr>
</table>
</div>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center">Reservados todos los derechos -
<a href="http://www.infosistemasweb.com.ar">InfoSistemasWeb.Com.Ar 2002 D.C</a></p>
</html>