PHP 4.0.5 : session continuity ???

bbtw

Joined: 2005-11-19
Posts: 1
Posted: Sat, 2005-11-19 05:04

PHP 4.0.5 : session continuity ???

Hi !

Here is the code :

<?php // Data/visiteurs

$visiteurs_array = array(
"non_identifie" => array("visiteur inconnu", rand()),
"ticot" => array("monsieur Alain Ticot", "marivon")
);

session_start();

$visiteur = "non_identifie"

if( isset( $HTTP_SESSION_VARS["visiteur"] ) )
$visiteur = $HTTP_SESSION_VARS["visiteur"] ;

if( isset($codax) ) // codax is access code : type "marivon" to enter the site.
foreach( $visiteurs_array as $cle=>$valeurs )
if( $codax == $valeurs[1] )
$visiteur = $cle;
// writen for several accesses, each with its own content.

session_register("visiteur");

?>

From login page to menu page session works ok; from any other page, session doesn't work. Why ???

See site at : http://d.braschi-blondeau.chez-alice.fr/Bureau/bur_index.php

Thanx for your help !

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sat, 2005-11-19 10:08

And this is Gallery (and Chit Chat at that) related how?


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-11-19 10:38

also unrelated: we don't support php 4.0.5 anyway. i'd upgrade to php 4.4.0.