From c04b4f17f123ceb078409630c13d57604827e6f5 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 22 Oct 2008 11:03:41 +0000 Subject: Semi-working session code. Still won't permit logging in, commented out until there is time to fix. Problem seems to be based around the action_gatekeeper() and the values set for the __elgg_session. Removing this component from the key causes the token to be valid. My feeling is that the session is not being saved or loaded correctly. git-svn-id: https://code.elgg.org/elgg/trunk@2291 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/schema/mysql.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/schema/mysql.sql') diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql index f82a276d6..b0d86f629 100644 --- a/engine/schema/mysql.sql +++ b/engine/schema/mysql.sql @@ -275,11 +275,11 @@ CREATE TABLE `prefix_users_sessions` ( `id` int(11) NOT NULL auto_increment, `session` varchar(255) NOT NULL, `ts` int(11) unsigned NOT NULL default '0', - `data` mediumtext, + `data` mediumblob, PRIMARY KEY (`id`), - KEY `session` (`session`), - KEY `expires` (`expires`) + UNIQUE KEY `session` (`session`), + KEY `ts` (`ts`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- Datalists for things like db version -- cgit v1.2.3