session.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Session Driver
  6. |--------------------------------------------------------------------------
  7. |
  8. | The name of the session driver used by your application. Since HTTP is
  9. | stateless, sessions are used to simulate "state" across requests made
  10. | by the same user of your application. In other words, it's how an
  11. | application knows who the heck you are.
  12. |
  13. | 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. It probably
  23. | goes without saying that this option only matters if you are using
  24. | the super slick 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 a
  38. | 2% chance of occuring for any given request to the application.
  39. | Feel free to tune this to your application's size and speed.
  40. |
  41. */
  42. 'sweepage' => array(2, 100),
  43. /*
  44. |--------------------------------------------------------------------------
  45. | Session Lifetime
  46. |--------------------------------------------------------------------------
  47. |
  48. | The number of minutes a session can be idle before expiring.
  49. |
  50. */
  51. 'lifetime' => 60,
  52. /*
  53. |--------------------------------------------------------------------------
  54. | Session Expiration On Close
  55. |--------------------------------------------------------------------------
  56. |
  57. | Determines if the session should expire when the user's web browser closes.
  58. |
  59. */
  60. 'expire_on_close' => false,
  61. /*
  62. |--------------------------------------------------------------------------
  63. | Session Cookie Name
  64. |--------------------------------------------------------------------------
  65. |
  66. | The name that should be given to the session cookie.
  67. |
  68. */
  69. 'cookie' => 'laravel_session',
  70. /*
  71. |--------------------------------------------------------------------------
  72. | Session Cookie Path
  73. |--------------------------------------------------------------------------
  74. |
  75. | The path for which the session cookie is available.
  76. |
  77. */
  78. 'path' => '/',
  79. /*
  80. |--------------------------------------------------------------------------
  81. | Session Cookie Domain
  82. |--------------------------------------------------------------------------
  83. |
  84. | The domain for which the session cookie is available.
  85. |
  86. */
  87. 'domain' => null,
  88. /*
  89. |--------------------------------------------------------------------------
  90. | HTTPS Only Session Cookie
  91. |--------------------------------------------------------------------------
  92. |
  93. | Determines if the cookie should only be sent over HTTPS.
  94. |
  95. */
  96. 'secure' => false,
  97. );