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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.