What potential pitfalls should be considered when using ini_set() to modify session settings?

When using ini_set() to modify session settings, it's important to consider the potential pitfalls such as affecting the entire application's session behavior, overriding settings set in php.ini, and causing unexpected behavior due to conflicting settings. To avoid these issues, it's recommended to carefully review the implications of each setting change and test thoroughly in a controlled environment before implementing in production.

// Example of setting session.gc_maxlifetime using ini_set()
ini_set('session.gc_maxlifetime', 3600);