class RedisSessionHandler implements SessionManagementInterface

A REDIS Session Session Adapter for XELOS To enable REDIS Session backend use the following config.custom options:

XF_SESSION_STORAGE = redis XF_SESSION_DATABASE = 1 (Default: 1, Should be another Database than Cache Database) XF_CACHE_SERVER = redis-host[:port]

Class redis_session_handler

Properties

int $life_time

Life Time for this Session (Currently a Session specific Timeout is NOT SUPPORTED by REDIS)

Methods

__construct(Session $xf_session, DB $db)

redis_session_handler constructor.

bool
connect()

Connect to REDIS Service and Register Session Serializer in PHP if Connection was successful

array
get_current_sessions()

No description

logout_all_users()

No description

logout_user($user_ids)

No description

Details

at line 61
__construct(Session $xf_session, DB $db)

redis_session_handler constructor.

Parameters

Session $xf_session
DB $db

at line 163
bool connect()

Connect to REDIS Service and Register Session Serializer in PHP if Connection was successful

Return Value

bool

True if Handler is available and successfully connected, false otherwise

at line 134
array get_current_sessions()

No description

Return Value

array

at line 105
logout_all_users()

No description

at line 114
logout_user($user_ids)

No description

Parameters

$user_ids