ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:session:reference:password

ADOdb_Session::password

Syntax
string ADOdb_Session::password(
  optional string $password
  )

Description

The static method password sets or gets the connection password on the session connection. This is not the same value as the password associated with the database abstraction layer.

The value must be set before config() is called

Use As A Getter

When used without parameters it returns the currently set value

Usage

 
include_once 'adodb/adodb.inc.php';
include_once "adodb/session/adodb-session2.php";
 
ADOdb_Session::password('some-password');
ADOdb_Session::config('',$host,$user,'',$database);
v5/session/reference/password.txt · Last modified: 2018/07/01 22:00 by peterdd