August 20, 200322 yr hi, i want to make a page that includes membership. Is it poosible to log off user if the user don't click any link in 30 min.? thanks
August 21, 200322 yr make any page that will redirect to "LogOUT.html" anypage.html------------ <meta http-equiv="refresh" content="1800;URL=LogOUT.html"> .... ------------------------ LogOUT.html--------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>BLANK</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="/CSS/FM.css" rel="stylesheet" type="text/css"> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) //v2.0 Dreamweaver native OpenBrowserWindow { window.open(theURL,winName,features); } //--> </script> <script> var myMinutes=1; // declare how many minutes you want allowed on the site/page var myTime = myMinutes * 60; // convert time from minutes into seconds var LogOut = myTime * 1000;// convert time from seconds into milliseconds t = null; function AutoLogOut() { t = setTimeout("top.window.close()",LogOut);// if you use frames -if no Frames use: window.close } </script> </head> <body onLoad="AutoLogOut();"> <table width="100%" height="496" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#666666" id="MAINTABLE"> <tr> <td align="center" valign="middle"> <table width="99%" height="494" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="INSIDETABLE"> <tr> <td width="40%" height="25"><hr size="1" color="#666666"> </td> <td width="20%" height="25" align="center" class="mask"> System Message</td> <td width="40%" height="25"><hr size="1" color="#666666"> </td> </tr> <tr> <td colspan="3" align="center"><p class="text">You will be automatically logged out in 1 minute!</p> <p class="text">To continue using our system please <a href="#" onClick="MM_openBrWindow('Index.html','','scrollbars=yes,width=1000,height=730,top=0,left=8');top.window.close();">CLICK HERE</a> and log in again!</p></td> </tr> </table> </td> </tr> </table> </body> </html> ------------------------------ sorry the "| code |" does not work today.....so its pure txt All the best!
Create an account or sign in to comment