Hi everybody,
I've already tried to get help here in the forum but not successfully.
I'm trying to explain you again my difficulties, hoping to give you more meanly information than last time.
I've got two pages:
1) authentication.php
2) test.php
AUTHENTICATION.PHP
[...]
<?
session_start();
$success = session_register("AUTENTICATO");
if ($success == false or $success == "")
{
[...] // Code to intercept the error
}
else
{
$AUTENTICATO = false;
[...] // instructions to set AUTENTICATO to true or false (it choose checking 2 "form variables"
}
?>
<SCRIPT>
document.location.href = 'menu.php';
</SCRIPT>
^^^^^^^^^^^^^^^^^^^^^
Script to redirect to TEST page
TEST.PHP
<?
session_start();
echo "REGISTERED? ";
echo session_is_registered("AUTENTICATO");
echo "CAN USER ENTER? ".$AUTENTICATO;
?>
I need third line to check if the variable is registered.
I need fourth line to check the value inside $AUTENTICATO.
If it can help you to understand the problem, I post here the of a session file, created automatically by PHP using the pages I post you:
AUTENTICATO|b:1;
^^^^^^^
|||||||||||||||||
This is the only line inside the session file.
I need all your help!! PLEASE!! 🙂
Thanks!
Gianluca.