Location: PHPKode > scripts > Free PHP User Registration Login System > free-php-user-registration-login-system/config.php
<?php
/*
This script was downloaded at:
LightPHPScripts.com
Please support us by visiting
out website and letting people
know of it.
Produced under: LGPL
*/

/* Main Options */
//----------------

/* Which page user goes to after logoss */
$logoutPage = 'login.php';

/* Secure page to redirect to after login */
$loginPage = 'myaccount.php';

/* Start session? Set this to false, if
you are already starting the session elsewhere
*/
$startSession = TRUE;

/* Use Cookies with sessions*/
$useCookies = TRUE;

/* Stay loged in for? -> cookies */
/* in seconds:
3600 ->  1 hr, 86400 -> 1 day
604800 -> 1 week, 2419200 -> 1 month
29030400 -> 1 year
*/
$logedInFor = 2419200;

/* Domain name -> cookies */
$domainName = 'example.com';

/*
Notes: Please note that using sessions,
will store a cookie with the ID on userside.
To make this work for users without cookies,
propagate the ID through the URLS
in this manner: 
nextpage.php?<?php echo htmlspecialchars(SID); ?>
*/

/* Connect to database? Set to false, if you
are already conneted */
$connectDatabase = TRUE;

/* Database Info */
$databaseUserName = 'root';
$databaseUserPassword = '';
$databaseHostName = 'localhost';
$databaseName = 'membership';

/* Table Info */
$tableName = 'userlist';
$userNameField = 'userName';
$userPasswordField = 'UserPassword';

/** SEC 334 **/
?>
Return current item: Free PHP User Registration Login System