Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sessions.php, tmp, session_start, session_write_close errors


Guest

Recommended Posts

Posted

Everything has been running fine since I have been running oscommerce except today when I tried to get on the main page and got the follow error msgs from the front page.

 

Warning: session_start(): open(/tmp/sess_51b6276c5933161d72807c8ddbcc9a16, O_RDWR) failed: Permission denied (13) in /opt/web/bishop/webshare/catalog/includes/functions/sessions.php on line 97

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /opt/web/bishop/webshare/catalog/includes/functions/sessions.php:97) in /opt/web/bishop/webshare/catalog/includes/functions/sessions.php on line 97

 

Warning: session_write_close(): open(/tmp/sess_51b6276c5933161d72807c8ddbcc9a16, O_RDWR) failed: Permission denied (13) in /opt/web/bishop/webshare/catalog/includes/functions/sessions.php on line 136

 

Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /opt/web/bishop/webshare/catalog/includes/functions/sessions.php on line 136

 

I've read some other post on here and having found anything directly pertaining to this issue. Also when I go to the admin pages I get these error messages:

 

Warning: session_start(): open(/tmp/sess_baec64b7dbf5cab18ebb77a8079ccc9d, O_RDWR) failed: Permission denied (13) in /opt/web/bishop/webshare/catalog/admin/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /opt/web/mullets/webshare/catalog/admin/includes/functions/sessions.php:67) in /opt/web/bishop/webshare/catalog/admin/includes/functions/sessions.php on line 67

 

Warning: Cannot modify header information - headers already sent by (output started at /opt/web/bishop/webshare/catalog/admin/includes/functions/sessions.php:67) in /opt/web/mullets/webshare/catalog/admin/includes/functions/general.php on line 22

 

Warning: Unknown(): open(/tmp/sess_baec64b7dbf5cab18ebb77a8079ccc9d, O_RDWR) failed: Permission denied (13) in Unknown on line 0

 

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

 

 

Any help or suggestion anyone could give me would be much appreciated. Thanks!

Posted

Your host/ISP may have changed permissions on /tmp.

 

The safest way is to store sessions in mysql rather than in files.

 

Change both

 

catalog/includes/configure.php

and

catalog/admin/includes/configure.php

 

near the bottom of the files and set

 

define('STORE_SESSIONS', 'mysql');

 

HTH

Tom

Archived

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

×
×
  • Create New...