0
Hello how can I complement the code below to work as follows accurate that the section is destroyed once a day or if the user creates the SESSION on 01/08/2015 if he accesses the same page with that SESSION on 02/08/2015 and it is destroyed only keeping the section valid if its date is the same. Since I need to keep $SESSION['name'] and $_SESSION['user'].
<?php
session_start();
$_SESSION['nomeSecao'] = $secaoNome;
$_SESSION['usuarioIp'] = $_SERVER["REMOTE_ADDR"];
if(isset($_SESSION['usuario'], $_SESSION['usuarioIp'] ))
{
// Da Insert + 1 na tabela secao coluna view
}
?>
Use cookies for this
– user3603