Xoviat Posted December 10, 2011 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?
Ice IT Support Posted December 10, 2011 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.
Xoviat Posted December 11, 2011 Author 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.
Guest xaav Posted December 11, 2011 Posted December 11, 2011 Generating the error_log file is part of the apache configuration and cannot be changed.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now