Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

session_start() crashes on first load


discomonkey

Recommended Posts

Posted

When I first load my page, my php script crashes when session_start() is called, however when you refresh the page or go to another page it seems to work. How can you debug session_start() to find out whats goin' on?

Posted

In your .htaccess enter

php_value display_errors on

and when you first display the page there should be some output describing why the session could not be started.

 

Be sure to remove that code while working on resolving the problem and when you are done. ;)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Archived

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

×
×
  • Create New...