help me please, I have my principal page php with a $_SESSION. page1.php
<?php
session_start();
$consulta = "select t.num_ticketfrom sdg_ticket t where t.cod_tipo_incidente=2 and t.cod_usuario='".$_SESSION['sdg_usuario']."' ";
?>
<html>
<head>
<script>
var auto_refresh = setInterval(function ()
{
$("#notificaciones").load("page2.php").fadeIn("slow"); }, 30000);
</script>
</head>
<body>
<li id="notificaciones" class="dropdown">
<?php include("page2.php"); ?>
</li>
</body>
</html>
second page page2.php
<?php
include("conexion.php");
$count="SELECT COUNT(*)
FROM sdg_ticket t,
sdg_usuario u,
sdg_estado_ticket e
WHERE u.cod_empresa = t.cod_empresa
AND u.cod_usuario = t.cod_usuario
AND e.cod_empresa = t.cod_empresa
AND e.cod_estado_ticket = t.cod_estado_ticket
AND t.cod_estado_ticket <>7
and t.cod_usuario ='".$_SESSION['sdg_usuario']."'";
?>
setInterval() in the page1.php refresh every 30000 time, in the second load get this
"Notice: Undefined variable: _SESSION in /srv/www/htdocs/lite/page2.php on line 12"