$session_handler = new SessionHandler();
// Open a session
- $session_handler->open('/path', 'CIVISOSESSID');
+ $session_handler->open('/path', 'SESSCIVISO');
// Create a unique session ID
$session_id = $session_handler->create_sid();
sleep(1);
// Re-open the session
- $session_handler->open('/path', 'CIVISOSESSID');
+ $session_handler->open('/path', 'SESSCIVISO');
// Validate the session
$this->assertTrue($session_handler->validateId($session_id));
sleep(1);
// Re-open the session
- $session_handler->open('/path', 'CIVISOSESSID');
+ $session_handler->open('/path', 'SESSCIVISO');
// Validate the session
$this->assertTrue($session_handler->validateId($session_id));
->execute();
// Open a new session to trigger garbage collection
- $session_handler->open('/path', 'CIVISOSESSID');
+ $session_handler->open('/path', 'SESSCIVISO');
$new_sid = $session_handler->create_sid();
$session_handler->read($new_sid);
$tx = new \CRM_Core_Transaction();
// Create a new session
- $session_handler->open('/path', 'CIVISOSESSID');
+ $session_handler->open('/path', 'SESSCIVISO');
$session_id = $session_handler->create_sid();
$session_handler->read($session_id);
$session_handler->write($session_id, 'CiviCRM|a:0:{}');
$session_handler->close();
// Re-open the session
- $session_handler->open('/path', 'CIVISOSESSID');
+ $session_handler->open('/path', 'SESSCIVISO');
$session_handler->validateId($session_id);
$session_handler->read($session_id);
$session_handler->write($session_id, 'CiviCRM|a:1:{s:4:"ufID";i:1}');