Jump to content

Logging the web pages of a visitor


otuatail

Recommended Posts

<?php
// Library SMS3S Version 1.0.0   15-03-2014   Desmond O'Toole.
require("../secure/SecureFunctions.php");
$page = "Admin";
session_start();
.
.
.
if($_SESSION["current_page"] <> $page)
{
    StoreData($page);
    mailtoX($page,"Library Admin Login.","");
}
$_SESSION["current_page"] = $page;

========================

The idea is that current session only changes when a user goes from page to page. But if I hit F5 I get another log StoreData(). But the session should prevent this.

Hi I have a db log that records the pages that a user visits. I don't want a repeat log if they hit F5

This is what I have been trying...

 

 

Link to comment
https://forums.phpfreaks.com/topic/297141-logging-the-web-pages-of-a-visitor/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.