LiveUser - Cookie gets set but Session won't start

From: Date: Thu, 06 Apr 2006 13:42:06 +0000
Subject: LiveUser - Cookie gets set but Session won't start
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23553@lists.php.net to get a copy of this message
Hello folks, I've been playing around with live user for a bit (couple of days or so) how ever, i can't get it to work. After much testing and playing around, i've become a bit frustrated since the basic configuration isn't working. So i'm going to go over what i did to see if someone can point me in the right direction. Ok, I installed LU Tables from the install.php, and used this conf array: $conf = array( 'authContainers' => array( array( 'type' => 'MDB2', 'expireTime' => 1800, 'idleTime' => 300, 'storage' => array( 'dsn' => $dsn, 'force_seq' => false, 'alias' => array( 'auth_user_id' => 'authUserId', 'lastlogin' => 'lastLogin', 'is_active' => 'isActive', 'owner_user_id' => 'owner_user_id', 'owner_group_id' => 'owner_group_id', ), 'fields' => array( 'auth_user_id' => 'integer', 'lastlogin' => 'timestamp', 'is_active' => 'boolean', 'owner_user_id' => 'integer', 'owner_group_id' => 'integer', ), 'tables' => array( 'users' => array( 'fields' => array( 'lastlogin' => null, 'is_active' => null, 'owner_user_id' => null, 'owner_group_id' => null, ), ), ), ), ), ), 'permContainer' => array( 'type' => 'Complex', 'storage' => array( 'MDB2' => array( 'dsn' => $dsn, 'prefix' => 'auth_', 'force_seq' => false, 'fields' => array( 'auth_user_id' => 'integer', ), ) ) ) ); Ok It installed and what not. I added a user and tried to login to it (downloaded the tutorial files from gvngroup.be) using the following array: $conf = array( 'autoInit' => true, 'debug' => true, 'session' => array( 'name' => 'TWF', // liveuser session name 'varname' => 'ludata', // liveuser session var name 'force_start' => true ), 'login' => array( 'force' => false // should the user be forced to login ), 'logout' => array( 'destroy' => true // whether to destroy the session on logout ), 'cookie' => array( 'name' => 'loginInfo', // name of the Remember me cookie 'lifetime' => 30, // cookie lifetime in days 'path' => null, // cookie path ? 'domain' => null, // cookie domain ? 'savedir' => '.', // absolute path to writeable directory ? // (no trailing slash) 'secure' => false, // whether cookie only send over secure connection ), 'authContainers' => array( 'MDB2' => array( 'type' => 'MDB2', 'expireTime' => 1800, 'idleTime' => 300, 'storage' => array( 'dsn' => $dsn, 'force_seq' => false, 'alias' => array( 'auth_user_id' => 'authUserId', 'lastlogin' => 'lastLogin', 'is_active' => 'isActive', 'owner_user_id' => 'owner_user_id', 'owner_group_id' => 'owner_group_id', ), 'fields' => array( 'auth_user_id' => 'integer', 'lastlogin' => 'timestamp', 'is_active' => 'boolean', 'owner_user_id' => 'integer', 'owner_group_id' => 'integer', ), 'tables' => array( 'users' => array( 'fields' => array( 'lastlogin' => null, 'is_active' => null, 'owner_user_id' => null, 'owner_group_id' => null, ), ), ), ), ), 'permContainer' => array( 'type' => 'Complex', 'storage' => array( 'MDB2' => array( 'dsn' => $dsn, 'prefix' => 'auth_', 'force_seq' => false, 'fields' => array( 'auth_user_id' => 'integer', ), ), ), ), ), ); Now, after all is said and done, and i try to login, i realize that a cookie is set with this data: [TWF] => 41ea75be21f1c5b3bb0492f26079f425 Which should be Session ID, how ever, it simply won't log in. I really don't know how to go about this, I spoke with lukas and he said the config arrays were set up accordingly (i showed him atleast 3 different ones i tried), So i really don't know how to go about this, hope someone has a more of a clue than me =) -- Atentamente, Héctor Partidas Desarrollador tuWebFacil.com

« previous php.pear.general (#23553) next »