var $tablename;
var $sessionkey;
var $cookiekey;
- var $cookietime = 1209600; // 2 weeks
+ var $cookietime = 63072000; // 2 years
- function UserService(&$db) {
+ function __construct(&$db) {
$this->db =& $db;
$this->tablename = $GLOBALS['tableprefix'] .'users';
$this->sessionkey = $GLOBALS['cookieprefix'] .'-currentuserid';