• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/session/handlers/table/usersessiontable.php
  • Класс: BitrixMainSessionHandlersTableUserSessionTable
  • Вызов: UserSessionTable::getMap
static function getMap()
{
	return [
		new EntityStringField('SESSION_ID', [
			'primary' => true,
			'format' => '#^[0-9a-z-,]{6,250}$#iD'
		]),
		new EntityDatetimeField('TIMESTAMP_X', [
			'default_value' => new TypeDateTime
		]),
		new EntityTextField('SESSION_DATA', [
			'default_value' => '',
			'save_data_modification' => function() {
				return [
					function($data) {
						return base64_encode($data);
					}
				];
			},
			'fetch_data_modification' => function() {
				return [
					function($data) {
						return base64_decode($data);
					}
				];
			},
		])
	];
}