Guest Posted April 5, 2003 Share Posted April 5, 2003 I installed my oscommerce website about 4 months ago with the cvs dump at that time. The shop runs great except for one little problem. When using a firewall or proxy, these errors show on top of the shop default page: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:www.kaartenkoning.nlwwwshopdefault.php:2) in D:www.kaartenkoning.nlwwwshopincludesfunctionssessions.php on line 67 Does anyone know what is causing this and what I have to do to get ridd of these? Best Regards, Michel Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2003 Share Posted April 6, 2003 anybody? Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2003 Share Posted April 6, 2003 Is there really no-one who knows the answer to this? Regards, Michel. Link to comment Share on other sites More sharing options...
Ian-San Posted April 6, 2003 Share Posted April 6, 2003 Well, the error message says that you have already sent out a header so it cannot send another for the same page. The error is often caused by having white space or blank lines at the end of one of your language files after the last ?>. However, looking at your url, it also seems strange. Are you running this shop within a shop or on a a shared url or in a frame or something?? Ian-san Flawlessnet Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2003 Share Posted April 6, 2003 No not as far as I know. The strange thing is that this problem only occurs if I surf from behind my firewall or using a proxy. You can see that shop online at: www.kaartenkoning.nl Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2003 Share Posted April 6, 2003 these are the exact errors: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:www.kaartenkoning.nlwwwshopdefault.php:2) in D:www.kaartenkoning.nlwwwshopincludesfunctionssessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:www.kaartenkoning.nlwwwshopdefault.php:2) in D:www.kaartenkoning.nlwwwshopincludesfunctionssessions.php on line 67 Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2003 Share Posted April 6, 2003 It's proxy. I bet the firewall also uses some sort of proxy, right? The proxy is caching your file and header info. Reset the proxy server, clear the proxy, the server not your browser. Hit the same page once, you should not see the error. If error shows up later, then it's the proxy. Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2003 Share Posted April 7, 2003 well, other people have the same problem. I cannot clear the proxy cause it's my providers. Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2003 Share Posted April 7, 2003 Most likely your proxy is caching the page. Just visited your site, everything works fine. I have firewall but no proxy. Link to comment Share on other sites More sharing options...
Ian-San Posted April 7, 2003 Share Posted April 7, 2003 I visited your site and everything looks fine. Also, I often access my own site from behind a proxy and firewall and do not get any problems. Again, looking at the error, it states that it is trying to start a new session whilst an existing session is still active. The proxy seems the most likely - it will cache the parsed code - not the source - so I wonder if it keeps the session open even after you have left the site? Or, are you using persistent sessions by any chance? Ian-san Flawlessnet Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2003 Share Posted April 7, 2003 Where can I set or check that? Link to comment Share on other sites More sharing options...
Ian-San Posted April 7, 2003 Share Posted April 7, 2003 define('USE_PCONNECT', 'false'); // use persistent connections? in configure.php - presumably you didnt make it true! Ian-san Flawlessnet Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2003 Share Posted April 7, 2003 I set it to true now (was false before) but it didn't solve the problem. I run this site on a win2000 server using IIS 5.0, PHP 4.2 and Mysql 3.23. All other scripts run fine. It is just oscommerce that produces this stange error. Regards, Michel. Link to comment Share on other sites More sharing options...
www.cytrace.com Posted April 7, 2003 Share Posted April 7, 2003 We have too a session problem with our phpbb forum The solution could be to modify code concerning IP adresse checking, but I'm not sur of the result. Did you try after deletting cookies ? www.cytrace.com http://www.cytrace.com/php/boutique/catalog/catalog/ Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2003 Share Posted April 7, 2003 I changed: ; Set to {nocache,private,public,} to determine HTTP caching aspects ; or leave this empty to avoid sending anti-caching headers. session.cache_limiter = nocache to ; Set to {nocache,private,public,} to determine HTTP caching aspects ; or leave this empty to avoid sending anti-caching headers. session.cache_limiter = in PHP.ini and now it is gone! Thank you all for your help anyways! Michel Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.