[thelist] header ("Location ...

Eduardo Kienetz eduardok at gmail.com
Fri Feb 16 21:33:55 CST 2007

On 2/16/07, Bob Meetin <ontheroad at frii.com> wrote:
> I have some php forms which I use for updating images and galleries.
> When I delete an image I redirect to another page.  This works fine on
> my windows pc in both Firefox and even in IE (bless its heart).  But on
> my linux PC, it falters in both Firefox and Konqueror.  It seems to lose
> the session (or something) and redirected my unauthorized page which
> means that you need to login to use the utility.
> header ("Location: http://www.webserver.com/script.php");
> I have a workaround.  I can do a chdir to get to the directory where the
> script.php file lives, then:
> chdir ("/home/whatever/www");
> header ("Location: script.php");
> This works, but I am really curious what might be different in settings
> that cause the failure.  -Bob

I would:

1) Compare php.ini (windows vs linux), specially the [Session] section.
2) Check the apache logs
3) Try to catch something at: tcpdump -s1000 -X port 80

Eduardo  Bacchi Kienetz
LPI Certified - Level 2

More information about the thelist mailing list