session.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Session Driver
  6. |--------------------------------------------------------------------------
  7. |
  8. | The name of the session driver for your application.
  9. |
  10. | Since HTTP is stateless, sessions are used to maintain "state" across
  11. | multiple requests from the same user of your application.
  12. |
  13. | Supported Drivers: 'cookie', 'file', 'database', 'memcached', 'apc', 'redis'.
  14. |
  15. */
  16. 'driver' => '',
  17. /*
  18. |--------------------------------------------------------------------------
  19. | Session Database
  20. |--------------------------------------------------------------------------
  21. |
  22. | The database table on which the session should be stored.
  23. |
  24. | This option is only relevant when using the "database" session driver.
  25. |
  26. */
  27. 'table' => 'sessions',
  28. /*
  29. |--------------------------------------------------------------------------
  30. | Session Garbage Collection Probability
  31. |--------------------------------------------------------------------------
  32. |
  33. | Some session drivers require the manual clean-up of expired sessions.
  34. | This option specifies the probability of session garbage collection
  35. | occuring for any given request.
  36. |
  37. | For example, the default value states that garbage collection has about
  38. | a 2% (2 / 100) chance of occuring for any given request.
  39. |
  40. */
  41. 'sweepage' => array(2, 100),
  42. /*
  43. |--------------------------------------------------------------------------
  44. | Session Lifetime
  45. |--------------------------------------------------------------------------
  46. |
  47. | The number of minutes a session can be idle before expiring.
  48. |
  49. */
  50. 'lifetime' => 60,
  51. /*
  52. |--------------------------------------------------------------------------
  53. | Session Expiration On Close
  54. |--------------------------------------------------------------------------
  55. |
  56. | Determines if the session should expire when the user's web browser closes.
  57. |
  58. */
  59. 'expire_on_close' => false,
  60. /*
  61. |--------------------------------------------------------------------------
  62. | Session Cookie Name
  63. |--------------------------------------------------------------------------
  64. |
  65. | The name that should be given to the session cookie.
  66. |
  67. */
  68. 'cookie' => 'laravel_session',
  69. /*
  70. |--------------------------------------------------------------------------
  71. | Session Cookie Path
  72. |--------------------------------------------------------------------------
  73. |
  74. | The path for which the session cookie is available.
  75. |
  76. */
  77. 'path' => '/',
  78. /*
  79. |--------------------------------------------------------------------------
  80. | Session Cookie Domain
  81. |--------------------------------------------------------------------------
  82. |
  83. | The domain for which the session cookie is available.
  84. |
  85. */
  86. 'domain' => null,
  87. /*
  88. |--------------------------------------------------------------------------
  89. | HTTPS Only Session Cookie
  90. |--------------------------------------------------------------------------
  91. |
  92. | Determines if the cookie should only be sent over HTTPS.
  93. |
  94. */
  95. 'secure' => false,
  96. );