Hey guys,

how come this script:

print_r($_SESSION);

if(session_is_registered('authorisatie'));   // User is logged in
   {
   echo "logged_in";
   if(!isset($_POST[formid]))                   // Form has not been submitted: Retrieve data from dbase
     {
     echo 'not submitted';
}}

results in:
Array ( ) logged_innot submitted?

Obviously the session array is empty. There should not be a variable authorisatie registered??

J

    Have you called session_start() first?

      Yes, of course!
      That is not the problem The session IS SUPPOSED to be empty. I don't understand how the session_is_registered can return a true..

      J.

        Write a Reply...