php sessions problem on IIS webserver under pleskpanel

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pavanpuligandla
Forum Contributor
Posts: 130
Joined: Thu Feb 07, 2008 8:25 am
Location: Hyderabad, India

php sessions problem on IIS webserver under pleskpanel

Post 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,
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Re: php sessions problem on IIS webserver under pleskpanel

Post 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().
André D
Forum Commoner
Posts: 55
Joined: Thu Aug 28, 2008 7:03 pm

Re: php sessions problem on IIS webserver under pleskpanel

Post 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.
Post Reply