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,
php sessions problem on IIS webserver under pleskpanel
Moderator: General Moderators
- pavanpuligandla
- Forum Contributor
- Posts: 130
- Joined: Thu Feb 07, 2008 8:25 am
- Location: Hyderabad, India
- 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
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().
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
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.