Short answer: possibly.
It could be that they've disabled use of ini_set
via the disable_functions
directive in the global php.ini, however that doesn't explain the behavior you're seeing; the documentation isn't clear, but I'd expect it to throw an error if you called a disabled function, nor does it explain why ini_get
returns what you've previously set. It's also entirely possible they're running their own patched version of PHP that alters this behavior. Not unheard of, but unlikely.
Things to try:
- setting it with session_set_cookie_params instead (needs to be before
session_start
) - double checking that you're setting the correct param (
session.cookie_lifetime
) and that your ini_set is definitely placed before session_start, or that you don't have another session_start somewhere else