phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


PHP Login: Configuration of phpSecureSite

Tag: login, security, phpsecuresite   Category: PHP Classes
post: 07 Jan 2008 read: 1,500


PHP Login System Tutorial: After installation, we must do a little job, set configuration. There are many options in phpSecureSite, but in this post, we just do at database and authentication configuration.

Database configuration
  1. Open file named "database.php" within www/test/phpsecuresite/phpsecuresite/phpss/config.
  2. Make sure, that you choose mysql database in line 36:
    $phpss_cfg["phpss"]["database_module"]	= "mysql";
  3. Then, set in mysql configuration like this:
     $phpss_cfg["database"]["mysql"] = 
    array(
       "modulefile" => 
    PHPSS_ROOT_FS . "/modules/database/mysql.php",
     
       // database server address (fully-qualified domain name or ip address)
       "hostname"		=> "localhost",
     
       // tcp port number to connect to 
      //(mysql uses 3306 by default)
       "port"			=> 3306,
     
       // username and password to connect with
       "username"		=> "root",
       "password"		=> "secret",
     
       // the database to use
       "database"		=> "test"
       );
Authentication Configuration
  1. Open authentication.php within www/phpsecuresite/phpsecuresite/phpss/config.
  2. Set module for authentication:
    $phpss_cfg["phpss"]["auth_module"]	= "database";
  3. Set password format:
    $phpss_cfg["phpss"]["auth_pwtype"]	= "md5";


Series this article:
PHP Login: Creating Login System Use PhpSecureSite (Introduction)
PHP Login: Installation of phpSecureSite
PHP Login: Configuration of phpSecureSite
PHP Login: Create Example Administrator at phpSecureSite
PHP Login:Creating Login Form Use phpSecureSite
PHP Login: Protecting Page Use phpSecureSite
PHP Login: Creating Logout from phpSecureSite

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Joomla: Fast Road to Understand Component Programming
Chart: How to Build Cool Animation Real Time Chart
Email: Send Attachement Mail
SMS : Sending SMS with PHP and ActiveXperts (Part 1)

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


624
posting