Page 1 of 1

php sessions problem on IIS webserver under pleskpanel

Posted: Tue Feb 24, 2009 1:50 pm
by pavanpuligandla
hii all,
i'm working on a smal database driven music shop site, with shopping cart feature..
its working with no issues on my localhost, when i upload it to my domain, i'm getting problem with sessions.
heres my url(http://www.veeturi.com/onlinestore/)
i'm getting warning :headers already sent, cannot modify header information error.

can anyone pls help me out..
i'll supply my source files if needed for further assistance..

many thanks,

Re: php sessions problem on IIS webserver under pleskpanel

Posted: Tue Feb 24, 2009 2:15 pm
by kaisellgren
This has nothing to do with security even if this is about sessions, because you are having a problem which relates to coding. Your problem is caused by outputting HTTP headers when you have already outputted something else (the body).

The error was not shown on your localhost as your error reporting level was not set to display those errors.

Solution? Do not output anything before using header().

Re: php sessions problem on IIS webserver under pleskpanel

Posted: Wed Feb 25, 2009 6:42 pm
by André D
Perhaps this is totally unrelated, but when I visit the page I see that "C:\WINDOWS\Temp" is output before the HTML. If you have some leftover debug code laying around that is echoing some variable like that, it would explain the "headers already sent" error you're getting.