Hey everyone,
I've been facing an issue with setting session variables using the `ini_set` function in PHP 7.2.0 and above. It seems like the function is not working as expected.
I have tried something like this:
```php
ini_set('session.save_handler', 'memcached');
ini_set('session.save_path', 'localhost:11211');
```
But when I check the `session.save_handler` and `session.save_path` variables using `phpinfo()`, they are still set to the default values.
I have also confirmed that the `ini_set` function is enabled and not disabled in the server's PHP configuration.
Has anyone else encountered a similar issue with `ini_set` and session variables in PHP 7.2.0 and higher? Is there any workaround or solution to this problem? I would appreciate any help or insights on this matter.
Thanks in advance!

Hey everyone,
I encountered a similar issue with session variables in PHP 7.2.0, and although the `ini_set` function didn't work for me, I found a different solution that might help.
Instead of trying to set session variables using `ini_set`, I used the `session_start` function and modified the session variables directly in my code.
Here's an example:
By setting the session variables directly in your code after calling `session_start`, you can bypass any restrictions imposed by `ini_set` and have more control over the session configuration.
However, please note that this approach might not be recommended in certain scenarios, especially if you have multiple files or scripts handling session data, as it can lead to inconsistent configuration.
I hope this alternative method helps you overcome the issue. If you have any further questions or need further assistance, feel free to ask.