PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Configure LiveUser to use Sessions instead of Cookies

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Authentication
View previous topic :: View next topic  
Author Message
redbrad0



Joined: 12 Jul 2008
Posts: 1

PostPosted: Sat Jul 12, 2008 2:11 pm    Post subject: Configure LiveUser to use Sessions instead of Cookies Reply with quote

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); 

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Authentication All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software