Xoviat Posted December 10, 2011 Share Posted December 10, 2011 Quick question: If I use ini_set, does it affect just my settings or the settings of every user on the server? I had no problems changing session.gc_maxlifetime at runtime but I can't find a local instance of php.ini in file manager, so it's made me wonder. Figured part of this out with a bit of self-help. I dropped the ini call and ran the page again. The change isn't permanent but appears to take effect when the script is called. Which makes me wonder is I can get away with an extended maxlifetime or if there are background processes that will clean these up. I would ideally have this set somewhere between 9000 and 12000. The alternative is constant id regeneration (with disposal) and repopulating the variables via mysql calls if they're not set, this sounds like a type server load which should be avoided. Does anyone know much about this? Quote Link to comment Share on other sites More sharing options...
Ice IT Support Posted December 10, 2011 Share Posted December 10, 2011 I can confirm that ini_set changes the settings for that script only. It does not edit php.ini or create another instance in a user's home folder. Edit: Removed last sentence. Quote Link to comment Share on other sites More sharing options...
Xoviat Posted December 11, 2011 Author Share Posted December 11, 2011 There's just a few settings that I change. In some instances I require different error reporting (For example, when I'm working on something new, I don't NEED to generate an error_log for everything, seeing it at run-time will do.) and of course the session length. I am still wondering though if there's any sort of session clean-up process which may ignore the extended length, but I guess i'll figure that out over time if there's no answer. Quote Link to comment Share on other sites More sharing options...
Guest xaav Posted December 11, 2011 Share Posted December 11, 2011 Generating the error_log file is part of the apache configuration and cannot be changed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.