ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:loadbalancer:setsessionvariable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
v5:reference:loadbalancer:setsessionvariable [2017/04/16 19:15] – created mnewnhamv5:reference:loadbalancer:setsessionvariable [2017/04/25 01:10] (current) mnewnham
Line 3: Line 3:
 <WRAP right box> <WRAP right box>
 == Applies To == == Applies To ==
-ADOdb Load Balancer+[[v5:loadbalancer:index|ADOdb Load Balancer]]
 == Syntax == == Syntax ==
    bool setSessionVariable(    bool setSessionVariable(
Line 13: Line 13:
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-The method ''setSessionVariable()'' .+The method ''setSessionVariable()'' queues up a key/value pair to be executed using the database specific //''SET SESSION''// syntax.
 --------------------------- ---------------------------
 ===== Usage ==== ===== Usage ====
Line 23: Line 23:
 $ok = $db->setSessionVariable('param1','variable1'); $ok = $db->setSessionVariable('param1','variable1');
 </code> </code>
 +===== Parameters =====
 +==== $key ====
 +==== $parameter ====
 +==== $immediateExecution ====
 +If the parameter is set to true, the method iterates through all the connections in the pool, establishes a connection to the database and executes the command. 
  
 +If set to false, then parameters are executed the first time a connection is made to the database.
 + 
v5/reference/loadbalancer/setsessionvariable.1492362939.txt.gz · Last modified: 2017/04/21 11:37 (external edit)