How To: determine next page visited?
Posted: Sun Aug 23, 2009 9:32 pm
Looking to determine if next page visited is in root site, else log them out
eg root=http://www.site.com/
<?php
//Function
if ()
{
echo('<body onunload="logout.php"> ')
}
?>
Any ideas?
only because im holding an online count in mysql database, and it gets annoying when users dont click logout, even though sessions are detroyed.
eg root=http://www.site.com/
<?php
//Function
if ()
{
echo('<body onunload="logout.php"> ')
}
?>
Any ideas?
only because im holding an online count in mysql database, and it gets annoying when users dont click logout, even though sessions are detroyed.