thankz roelpaulo
i solved this problem by dual reirect ie
>>
after login i redirect to a page
>>
from that page i redirect to main page
now working correctly
thanks for Ur valuable suggestion
further suggestion are welcomed
i tried your suggestion but its not working
now i think it is not the problem of header but the session variable is not setting since i had executed a session testing script
it works correctly
test file 1
<?php
session_start();
$_SESSION['test'] = 'testing';
?>
test file 2
<?php...