
March 10th, 2003, 11:39 AM
|
|
Junior Member
|
|
Join Date: Nov 2002
Location: Netherlands
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
ExtraFieldNames
After fiddling around a bit, I got everything working but I need a few extra fields in the users table and consequently in the session table. I added the fields in both tables and modified the code where applicable but now, when I try to log in, a "new session could not be started", nothing is added to the session table but a successful login is recorded in the log table...
Is this the right way to define extra fields in "login.php"?:
...
$dtlsSecurity->ExtraFieldNames('firstname,lastname,extrafield1,ex trafield2');
...
and in the "function ProcessLogin()":
...
// Set the login credentials for this user in the tbl_AdminSessions table
if($dtlsSecurity->StoreSession($result[0], $result[1], $result[3], "{$result['firstname']},{$result['lastname']},{$result['extrafield1']},{$result['extrafield2']}")) {
if($_POST['strSetCookie'] == 1) {
... etc, etc.
I would greatly appreciate any help available here...
Thanx in advance!
Rick
|