tags:

views:

27

answers:

1

Hello all,

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

For example,

ini_set('session.use_only_cookies', 1);

Thank you

+1  A: 

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)

aaronasterling
For this specific setting, how do you inform the user that the website requires cookies?Thank you
q0987
@qo987 when your application requires a cookie that isn't there
aaronasterling