redbrad0
Joined: 12 Jul 2008 Posts: 1
|
Posted: Sat Jul 12, 2008 2:11 pm Post subject: Configure LiveUser to use Sessions instead of Cookies |
|
|
I had someone help me build the basic's of the website using 3rd party scripts (like LiveUser) and one thing I have now found out is that you must have cookies enabled to login to the site. Does anyone know how to switch LiveUser around to use Sessions instead of cookies? In my site's config file he has the following array being passed thru to the Authentication script which I can't seem to find anything dealing with sessions instead of cookies. Does anyone have any other advice?
| Code: |
$liveuser_conf =
array(
'debug' => &$logger,
'session' => array(
'name' => 'PHPSESSION', // liveuser session name
'varname' => 'liveuser_data' // liveuser session var name
),
'cookie' => array(
'name' => 'loginInfo',
'lifetime' => 30,
'path' => null,
'domain' => '.XXXXXXXXXX.XXX',
'secret' => 'XXXXXXXXXX',
'savedir' => '/_tmp_dir',
'secure' => false
),
'cache_perm' => false,
'login' => array(
'force' => false // should the user be forced to login
),
'logout' => array(
'destroy' => true // whether to destroy the session on logout
),
'permContainer' => array(
'type' => 'Medium',
'storage' => array(
'DB' => array( // storage container name
'dbc' => &$db['db_object'],
'prefix' => 'userinfo_', // table prefix
'tables' => array(),
'fields' => array(),
'alias' => array()
)
)
),
'authContainers' => array(
array(
'type' => 'DB', // auth container name
'expireTime' => 21600, // max lifetime of a session in seconds
'idleTime' => 7200, // max time between 2 requests
'allowDuplicateHandles' => 0,
'allowEmptyPasswords' => 0, // 0=false, 1=true
'passwordEncryptionMode'=> 'MD5',
'storage' => array(
'dbc' => &$db['db_object'],
'alias' => array( // contains any additional
// or non-default field alias
'lastlogin' => 'lastlogin',
'is_active' => 'is_active',
'owner_user_id' => 'owner_user_id',
'owner_group_id' => 'owner_group_id',
'email' => 'handle'
),
'fields' => array( // contains any additional
// or non-default field types
'lastlogin' => 'timestamp',
'is_active' => 'boolean',
'owner_user_id' => 'integer',
'owner_group_id' => 'integer',
'email' => 'text'
),
'tables' => array( // contains additional tables
// or fields in existing tables
'users' => array(
'fields' => array(
'lastlogin' => false,
'is_active' => false,
'owner_user_id' => false,
'owner_group_id' => false,
'email' => false
)
)
)
)
)
)
);
$auth = new Authentication($db['db_object'], $smarty, $liveuser_conf);
|
|
|