开发者

PHP - Where should I call ini_set?

开发者 https://www.devze.com 2023-01-10 09:52 出处:网络
I am looking for a best practice for where I should place the statement ini_set. For example, ini_set(\'session.use_开发者_C百科only_cookies\', 1);

I am looking for a best practice for where I should place the statement ini_set.

For example,

ini_set('session.use_开发者_C百科only_cookies', 1);

Thank you


I normally place them all in my index.php file as early as is practical. Normally, immediately after defining constants for the root directory of my application and before anything could go wrong (for example before any requires)

0

精彩评论

暂无评论...
验证码 换一张
取 消