session.php 628 B

123456789101112131415161718192021222324252627
  1. <?php
  2. return [
  3. 'database' => [
  4. /**
  5. * Database settings for session storage.
  6. *
  7. * string group configuation group name
  8. * string table session table name
  9. * integer gc number of requests before gc is invoked
  10. * columns array custom column names
  11. */
  12. 'group' => 'default',
  13. 'table' => 'sessions',
  14. 'gc' => 500,
  15. 'columns' => [
  16. /**
  17. * session_id: session identifier
  18. * last_active: timestamp of the last activity
  19. * contents: serialized session data
  20. */
  21. 'session_id' => 'session_id',
  22. 'last_active' => 'last_active',
  23. 'contents' => 'contents'
  24. ],
  25. ],
  26. ];