well after removing echo tags, here is your code:
<?php
require_once "staff_scripts.php";
session_start();
$SESSION['object'] = "an_object passed to this page";
$t = $SESSION['object'];
if( strlen($t) < 1000 )
{
header("Location: http://www.gaijatra.com/Gnews/ktm/work/test2.php");
exit;
}
print_r($_SESSION);
?>
out put :
blank page
browser address :http://www.gaijatra.com/GNews/ktm/work/test1.php
didnt' get redirected i suppose
finally above code is same as my original code which is:
<?php
require_once "staff_scripts.php";
session_start();
$SESSION['object'] = "an_object passed";
$t = $SESSION['object'];
if(strlen($t) < 100)
{
header("Location: http://www.gaijatra.com/GNews/ktm/work/test2.php");
exit;
}
?>
except last line:
print_r($_SESSION); // ie on your code
my code output is sam ie blank page with same browser address ie not being redirected!!!
so what is the problem? I can't figure out, 🙁
but I really appreciate your effort
onething, if you only comment the require_once.... statement at the top it works fine!! Seems like its the require_once call that messes up the things? any idea???
thanks a bunch