On Fri, May 15, 2009 at 12:16 AM, Robin Elfrink robin@15augustus.nl wrote:
Thomas Bruederli wrote:
The solution you committed seems to solve the issue quite well for now.
What we need, in my opinion, is a per-variable row in the session table. And, if possible, reads/writes per variable. Maybe even replace all references to $_SESSION[] with functions like rcube_sess_get() and rcube_sess_set() or something like that.
I'm not a big fan of this approach. It requires changes to the db-schema every time we introduce a new session var and I'm sure
No, just once.
CREATE TABLE
session(sess_idvarchar(40) NOT NULL,createddatetime NOT NULL default '0000-00-00 00:00:00',changeddatetime NOT NULL default '0000-00-00 00:00:00',ipvarchar(40) default NULL,varstext NOT NULL, PRIMARY KEY (sess_id), KEYchanged_index(changed) )Would become something like:
CREATE TABLE
session(sess_idvarchar(40) NOT NULL,createddatetime NOT NULL default '0000-00-00 00:00:00',changeddatetime NOT NULL default '0000-00-00 00:00:00',ipvarchar(40) default NULL,vartext NOT NULL,valuetext NOT NULL, KEYsess_id(sess_id), KEYchanged_index(changed) )Thus one row per variable.
Hey Robin,
sorry to be late on this. Can you explain again why this is necessary? I just don't understand. ;-) It sounds indeed that we are building some pretty weird work around for a maybe RC specific problem (race conditions?).
Till _______________________________________________ List info: http://lists.roundcube.net/dev/