Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with sessions


Guest

Recommended Posts

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

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

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

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

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...