Skip to content
circuitbomb edited this page Sep 13, 2010 · 2 revisions

Within User-Library are some parameters which developers may wish to change to suit application specific needs.

Configuration Options
File: /config/user.php
Line: 3, 4 and 5
Parent Function: n/a

These configuration values allow you to set a specified user table, the proper identity column for use in your application, and the appropriate adapter (default:User_Db)


$config['user_table'] = 'users'; $config['identity_column'] = 'email'; $config['adapter'] = 'User_Db';

Persistent Cookie Lifetime
File: /libraries/Users/adapters/User_db.php
Line: 215
Parent Function: _set_persistent_session($user = array())

By setting the ‘expire’ array value you can set the lifetime of the persistence cookie to a value suitable to your needs.

 
$cookie = array(
     'name' => 'persistent_session',
     'value' => implode('|', $session_pair),
     'expire' => 60 * 60 * 24 * 91 // set to 3 months and 1 day
);

Clone this wiki locally