Advertisement
magasr

Untitled

Mar 22nd, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.75 KB | None | 0 0
  1. [Session]
  2. ; Handler used to store/retrieve data.
  3. ; http://php.net/session.save-handler
  4. session.save_handler = files
  5.  
  6. ; Argument passed to save_handler. In the case of files, this is the path
  7. ; where data files are stored. Note: Windows users have to change this
  8. ; variable in order to use PHP's session functions.
  9. ;
  10. ; The path can be defined as:
  11. ;
  12. ; session.save_path = "N;/path"
  13. ;
  14. ; where N is an integer. Instead of storing all the session files in
  15. ; /path, what this will do is use subdirectories N-levels deep, and
  16. ; store the session data in those directories. This is useful if
  17. ; your OS has problems with many files in one directory, and is
  18. ; a more efficient layout for servers that handle many sessions.
  19. ;
  20. ; NOTE 1: PHP will not create this directory structure automatically.
  21. ; You can use the script in the ext/session dir for that purpose.
  22. ; NOTE 2: See the section on garbage collection below if you choose to
  23. ; use subdirectories for session storage
  24. ;
  25. ; The file storage module creates files using mode 600 by default.
  26. ; You can change that by using
  27. ;
  28. ; session.save_path = "N;MODE;/path"
  29. ;
  30. ; where MODE is the octal representation of the mode. Note that this
  31. ; does not overwrite the process's umask.
  32. ; http://php.net/session.save-path
  33. ;session.save_path = "/var/lib/php/sessions"
  34.  
  35. ; Whether to use strict session mode.
  36. ; Strict session mode does not accept uninitialized session ID and regenerate
  37. ; session ID if browser sends uninitialized session ID. Strict mode protects
  38. ; applications from session fixation via session adoption vulnerability. It is
  39. ; disabled by default for maximum compatibility, but enabling it is encouraged.
  40. ; https://wiki.php.net/rfc/strict_sessions
  41. session.use_strict_mode = 0
  42.  
  43. ; Whether to use cookies.
  44. ; http://php.net/session.use-cookies
  45. session.use_cookies = 1
  46.  
  47. ; http://php.net/session.cookie-secure
  48. ;session.cookie_secure =
  49.  
  50. ; This option forces PHP to fetch and use a cookie for storing and maintaining
  51. ; the session id. We encourage this operation as it's very helpful in combating
  52. ; session hijacking when not specifying and managing your own session id. It is
  53. ; not the be-all and end-all of session hijacking defense, but it's a good start.
  54. ; http://php.net/session.use-only-cookies
  55. session.use_only_cookies = 1
  56.  
  57. ; Name of the session (used as cookie name).
  58. ; http://php.net/session.name
  59. session.name = PHPSESSID
  60.  
  61. ; Initialize session on request startup.
  62. ; http://php.net/session.auto-start
  63. session.auto_start = 0
  64.  
  65. ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
  66. ; http://php.net/session.cookie-lifetime
  67. session.cookie_lifetime = 0
  68.  
  69. ; The path for which the cookie is valid.
  70. ; http://php.net/session.cookie-path
  71. session.cookie_path = /
  72.  
  73. ; The domain for which the cookie is valid.
  74. ; http://php.net/session.cookie-domain
  75. session.cookie_domain =
  76.  
  77. ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
  78. ; http://php.net/session.cookie-httponly
  79. session.cookie_httponly =
  80.  
  81. ; Handler used to serialize data. php is the standard serializer of PHP.
  82. ; http://php.net/session.serialize-handler
  83. session.serialize_handler = php
  84.  
  85. ; Defines the probability that the 'garbage collection' process is started
  86. ; on every session initialization. The probability is calculated by using
  87. ; gc_probability/gc_divisor. Where session.gc_probability is the numerator
  88. ; and gc_divisor is the denominator in the equation. Setting this value to 1
  89. ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
  90. ; the gc will run on any give request.
  91. ; Default Value: 1
  92. ; Development Value: 1
  93. ; Production Value: 1
  94. ; http://php.net/session.gc-probability
  95. session.gc_probability = 0
  96.  
  97. ; Defines the probability that the 'garbage collection' process is started on every
  98. ; session initialization. The probability is calculated by using the following equation:
  99. ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
  100. ; session.gc_divisor is the denominator in the equation. Setting this value to 1
  101. ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
  102. ; the gc will run on any give request. Increasing this value to 1000 will give you
  103. ; a 0.1% chance the gc will run on any give request. For high volume production servers,
  104. ; this is a more efficient approach.
  105. ; Default Value: 100
  106. ; Development Value: 1000
  107. ; Production Value: 1000
  108. ; http://php.net/session.gc-divisor
  109. session.gc_divisor = 1000
  110.  
  111. ; After this number of seconds, stored data will be seen as 'garbage' and
  112. ; cleaned up by the garbage collection process.
  113. ; http://php.net/session.gc-maxlifetime
  114. session.gc_maxlifetime = 1440
  115.  
  116. ; NOTE: If you are using the subdirectory option for storing session files
  117. ; (see session.save_path above), then garbage collection does *not*
  118. ; happen automatically. You will need to do your own garbage
  119. ; collection through a shell script, cron entry, or some other method.
  120. ; For example, the following script would is the equivalent of
  121. ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
  122. ; find /path/to/sessions -cmin +24 -type f | xargs rm
  123.  
  124. ; Check HTTP Referer to invalidate externally stored URLs containing ids.
  125. ; HTTP_REFERER has to contain this substring for the session to be
  126. ; considered as valid.
  127. ; http://php.net/session.referer-check
  128. session.referer_check =
  129.  
  130. ; How many bytes to read from the file.
  131. ; http://php.net/session.entropy-length
  132. ;session.entropy_length = 32
  133.  
  134. ; Specified here to create the session id.
  135. ; http://php.net/session.entropy-file
  136. ; Defaults to /dev/urandom
  137. ; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom
  138. ; If neither are found at compile time, the default is no entropy file.
  139. ; On windows, setting the entropy_length setting will activate the
  140. ; Windows random source (using the CryptoAPI)
  141. ;session.entropy_file = /dev/urandom
  142.  
  143. ; Set to {nocache,private,public,} to determine HTTP caching aspects
  144. ; or leave this empty to avoid sending anti-caching headers.
  145. ; http://php.net/session.cache-limiter
  146. session.cache_limiter = nocache
  147.  
  148. ; Document expires after n minutes.
  149. ; http://php.net/session.cache-expire
  150. session.cache_expire = 180
  151.  
  152. ; trans sid support is disabled by default.
  153. ; Use of trans sid may risk your users' security.
  154. ; Use this option with caution.
  155. ; - User may send URL contains active session ID
  156. ; to other person via. email/irc/etc.
  157. ; - URL that contains active session ID may be stored
  158. ; in publicly accessible computer.
  159. ; - User may access your site with the same session ID
  160. ; always using URL stored in browser's history or bookmarks.
  161. ; http://php.net/session.use-trans-sid
  162. session.use_trans_sid = 0
  163.  
  164. ; Select a hash function for use in generating session ids.
  165. ; Possible Values
  166. ; 0 (MD5 128 bits)
  167. ; 1 (SHA-1 160 bits)
  168. ; This option may also be set to the name of any hash function supported by
  169. ; the hash extension. A list of available hashes is returned by the hash_algos()
  170. ; function.
  171. ; http://php.net/session.hash-function
  172. session.hash_function = 0
  173.  
  174. ; Define how many bits are stored in each character when converting
  175. ; the binary hash data to something readable.
  176. ; Possible values:
  177. ; 4 (4 bits: 0-9, a-f)
  178. ; 5 (5 bits: 0-9, a-v)
  179. ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",")
  180. ; Default Value: 4
  181. ; Development Value: 5
  182. ; Production Value: 5
  183. ; http://php.net/session.hash-bits-per-character
  184. session.hash_bits_per_character = 5
  185.  
  186. ; The URL rewriter will look for URLs in a defined set of HTML tags.
  187. ; form/fieldset are special; if you include them here, the rewriter will
  188. ; add a hidden <input> field with the info which is otherwise appended
  189. ; to URLs. If you want XHTML conformity, remove the form entry.
  190. ; Note that all valid entries require a "=", even if no value follows.
  191. ; Default Value: "a=href,area=href,frame=src,form=,fieldset="
  192. ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
  193. ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
  194. ; http://php.net/url-rewriter.tags
  195. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
  196.  
  197. ; Enable upload progress tracking in $_SESSION
  198. ; Default Value: On
  199. ; Development Value: On
  200. ; Production Value: On
  201. ; http://php.net/session.upload-progress.enabled
  202. ;session.upload_progress.enabled = On
  203.  
  204. ; Cleanup the progress information as soon as all POST data has been read
  205. ; (i.e. upload completed).
  206. ; Default Value: On
  207. ; Development Value: On
  208. ; Production Value: On
  209. ; http://php.net/session.upload-progress.cleanup
  210. ;session.upload_progress.cleanup = On
  211.  
  212. ; A prefix used for the upload progress key in $_SESSION
  213. ; Default Value: "upload_progress_"
  214. ; Development Value: "upload_progress_"
  215. ; Production Value: "upload_progress_"
  216. ; http://php.net/session.upload-progress.prefix
  217. ;session.upload_progress.prefix = "upload_progress_"
  218.  
  219. ; The index name (concatenated with the prefix) in $_SESSION
  220. ; containing the upload progress information
  221. ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS"
  222. ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS"
  223. ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS"
  224. ; http://php.net/session.upload-progress.name
  225. ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS"
  226.  
  227. ; How frequently the upload progress should be updated.
  228. ; Given either in percentages (per-file), or in bytes
  229. ; Default Value: "1%"
  230. ; Development Value: "1%"
  231. ; Production Value: "1%"
  232. ; http://php.net/session.upload-progress.freq
  233. ;session.upload_progress.freq = "1%"
  234.  
  235. ; The minimum delay between updates, in seconds
  236. ; Default Value: 1
  237. ; Development Value: 1
  238. ; Production Value: 1
  239. ; http://php.net/session.upload-progress.min-freq
  240. ;session.upload_progress.min_freq = "1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement