i have a slight problem with those sessions.
The problem is as follows:
i have a index.php file containing this:
<?
include_once('global.php');
echo $SESSION['tekst'];
$SESSION['tekst'] =3D 'test<br>';
echo $_SESSION['tekst'];
printf('<a href =3D test.php>test</a>');
?>
global.php contains the following:
<?
if (!isset($SESSION['tekst'])) {
$SESSION['tekst'] =3D 'niet gezet';
}
?>
then, i have a file, test.php
what i want to happen, is that the value of $_SESSION['tekst'] is show =
in test.php, but that doesnt happen.
test.php contains:
<?
include_once('global.php');
echo $_SESSION['tekst'];
?>
All i see is $SESSION['tekst'] =3D 'niet gezet', as though =
$SESSION['tekst'] isn't set.
Am i doing anything wrong here?
i've tryed with session_register() also, and alot more, but it still =
wont show $_SESSION['tekst'], is a specify it in index.php
what am i doing wrong?