View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000853 | OXID eShop (all versions) | 4. ------ eShop Core ------- | public | 2009-05-04 15:41 | 2012-12-10 13:42 |
Reporter | birute_meilutyte | Assigned To | |||
Priority | urgent | Severity | block | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Fixed in Version | 4.5.1 revision 38045 | ||||
Summary | 0000853: DB Session handling in eShop 4th does not work at all | ||||
Description | DB session handling can be activated by entering $this->blAdodbSessionHandler = true; into config.inc.php. however, if it is activated, shop does not start at all. fatal error appears. | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | 5.2.6 | ||||
Database Version | 5.0.33 | ||||
has duplicate | 0003349 | resolved | dainius.bigelis | OXID ERP Interface | Ado DB Session handler does not work with ERP interface |
related to | 0003042 | resolved | Linas Kukulskis | OXID ERP Interface | ERP fatal error when adodb session hendler is on |
related to | 0003875 | resolved | Linas Kukulskis | OXID eShop (all versions) | Session gets lost when using ADODB |
related to | 0004560 | resolved | saulius.stasiukaitis | OXID eShop (all versions) | Session size might exceed column limit when using database for session storage |
|
fixed only by changing adodblite package. |
|
The basic problem with this feature is adodb being not compliant with E_STRICT mode. There is no simple way to avoid that, so if you need sessions in databases you need to implement some manual changes: 1. File: source\core\adodblite\session\adodb-session.php Change ALL class function declarations to static. Example: function sess_open($sess_path, $sess_name, $persist = null) to static function sess_open($sess_path, $sess_name, $persist = null) 2. As always add additional table manually to the DB: CREATE TABLE oxsessions ( ID INT NOT NULL AUTO_INCREMENT, SessionID VARCHAR(64), session_data TEXT DEFAULT '', expiry INT(11), expireref VARCHAR(64) DEFAULT '', PRIMARY KEY (ID), INDEX SessionID (SessionID) INDEX expiry (expiry) ); 3.In config.inc.php check additional config constant, like: $this->blAdodbSessionHandler = true; That's it. The incompatibility has been reported to AdoDBLite developers. |
|
Check if this functionatity works |
|
changed adodblite session package. added fixes in to oxsession class |