It is supposed to check if a session variable is not set. If not, it redirects the user to the start of the process. That way if the users favorite or bookmark any page within the process, they will always find themselves at the start.
1.php
Code: Select all
<?php
session_start();
if (!$_SESSION['session_company']){
header('Location: http://mydomain.com/app/test/index.php');
}
?>If i go directly to 1.php, the redirect starts waits a few seconds and then this is displayed in my browser...
"Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
The re-direct will not work in IE either.
Any ideas anyone? Please...