12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- defined('GNUSOCIAL') || die();
- class Session extends Managed_DataObject
- {
-
-
- public $__table = 'session';
- public $id;
- public $session_data;
- public $created;
- public $modified;
-
-
-
- public static function schemaDef()
- {
- return [
- 'fields' => [
- 'id' => ['type' => 'varchar', 'length' => 128, 'not null' => true, 'description' => 'session ID'],
- 'session_data' => ['type' => 'text', 'description' => 'session data'],
- 'created' => ['type' => 'datetime', 'description' => 'date this record was created'],
- 'modified' => ['type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'],
- ],
- 'primary key' => ['id'],
- 'indexes' => [
- 'session_modified_idx' => ['modified'],
- ],
- ];
- }
-
- public static function cleanup()
- {
- session_write_close();
- }
- }
|