register_session_handler ( $config )

Registers DynamoDB as the default session handler for PHP.

Access

public

Parameters

Parameter

Type

Required

Description

$config

array

Optional

An array of configuration items for the session handler.

Returns

Type

Description

DynamoDBSessionHandler

The session handler object.

Source

Method defined in services/dynamodb.class.php | Toggle source view (10 lines) | View on GitHub

public function register_session_handler(array $config = array())
{
    require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'extensions'
        . DIRECTORY_SEPARATOR . 'dynamodbsessionhandler.class.php';

    $dynamo_session_handler = new DynamoDBSessionHandler($this, $config);
    $dynamo_session_handler->register();

    return $dynamo_session_handler;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback