ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:session:reference:user

ADOdb_Session::user

Syntax
string ADOdb_Session::user(
  optional string $userName
  )

Description

The static method user sets or gets the user on the session connection. This is not the same value as the user 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::user('user');
ADOdb_Session::config('oci8',$host,'',$pass,$database);
ADOdb_Session::debug(true);
v5/session/reference/user.txt · Last modified: 2018/07/01 22:00 by peterdd