DineSh
06-29-2005, 08:25 AM
i have made a session based redirection ie when the authentication is valid then it redirects to the certian page.when i used the header("Location:target.php");
it shows header already sent by......problems .then i used HTML redirection(using meta tags)then the page redirects but its shows the same "header already sent by..." message in intermediate form(ie when the page is Loading)..wht's the problem i m not gettin Please Help
_Aerospace_Eng_
06-29-2005, 08:36 AM
the code seems correct, do you have a link to the page? Some things that might cause this are some type of security software. NIS2005 does this sometimes.
Yakisoba
06-29-2005, 08:37 AM
Try putting an absolute path for Location:.
i.e.
header("Location: http://localhost/target.php");
Yak
SeeIT Solutions
06-29-2005, 08:38 AM
That error means you have output something to the browser before redirecting. Post all your code for more help.
GNabeeh
06-29-2005, 09:59 AM
the code is seems correct but the problem is in your php.ini configuration .
In the PHP.ini file you must set the variable output_buffering
[output_buffering = on]
and then the code will run
chump2877
06-29-2005, 01:49 PM
If all else fails, or you just want an easy way out of this jam, you could just use this line of javascript instead:
<script>document.location='target.php'</script>
I do this sometimes when I don;t feel like dealing with session/header/buffer issues....
DineSh
06-30-2005, 10:43 AM
thnks all of u for helping me