![]() |
Session and headers sent problems :( - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Session and headers sent problems :( (/showthread.php?tid=2726) |
Session and headers sent problems :( - El Forum - 08-21-2007 [eluser]chobo[/eluser] I'm trying to get my new version of my site to work, but I'm running into problems with headers and session. This probably has something to do with me being on a shared host because I never have these problems on my test computer. I made my own session wrapper library, it's very simple and when I run the init() function to start the session, it triggers the "headers already sen" error. I'm not sure how to get my session to run before the server sends it's headers. Any help is appreciated, thanks Code: /* Session and headers sent problems :( - El Forum - 08-21-2007 [eluser]Michael Wales[/eluser] Make sure there isn't any whitespace being sent prior to the session_start() function (spaces at the top/bottom of files that are previously loaded). Session and headers sent problems :( - El Forum - 08-21-2007 [eluser]chobo[/eluser] I actually ran into that header problem as well, thanks Whales ![]() ![]() Session and headers sent problems :( - El Forum - 10-03-2007 [eluser]birkof[/eluser] Same problem here, solved in chobo's way. Thanks |