sessions and reload/refresh
| From: | Javier | Date: | Sat, 27 Apr 2002 19:30:09 +0000 |
| Subject: | sessions and reload/refresh | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-94938@lists.php.net to get a copy of this message | ||
Is it possible that everytime un click the refresh button a
new session is created?
Here's my index.php
Every time refresh this page a new session is created.
<?php
function MostrarPaginaPrincipal() {
include "html/index.html";}
include "include/sesiones.php";
include "include/permisos.inc.php";
echo session_id();
session_start();
if(!session_is_registered("ses_activa")){
include "include/permisos.inc.php";
global $ses_usuario_perm;
global $ses_activa;
global $ses_logged_in;
$ses_usuario_perm = $PERM_VISITA;
$ses_activa = true;
$ses_logged_in = false;
session_name("SESSRONDAID");
session_register("ses_activa");
session_register("ses_logged_in");
session_register("ses_usuario_perm");
echo session_id();
}
MostrarPaginaPrincipal();
exit();
?>