Change session.hash_function to 1. Is possible?

Hi everyone.

I would like to change the next setting in my php.ini settings

session.hash_function = 0

to:

session.hash_function = 1

Is that possible?

Thanks in advance.

We can’t change anything with php.ini
What are you trying to achieve exactly?

I think session.hash_function was removed in PHP 7 onwards? Double check though.

Thanks for your answer.

I have installed ZEN CART in my website and there is a log of the next error:

[11-Jun-2019 18:16:31] PHP Fatal error: 1062:Duplicate entry ‘0tkjfpmqb8bodd1v4haib4k5m0’ for key ‘PRIMARY’ :: insert into zen_sessions
values (‘0tkjfpmqb8bodd1v4haib4k5m0’, ‘1560277891’, ‘c2VjdXJpdHlUb2tlbnxzOjMyOiIxY2I5NmRlMDhkMTA3NmYwYTVlMmQ4MGRkNDQwZWJiOSI7bGFuZ3VhZ2V8czo3OiJzcGFuaXNoIjtsYW5ndWFnZXNfaWR8czoxOiIyIjtsYW5ndWFnZXNfY29kZXxzOjI6ImVzIjtzZWxlY3RlZF9ib3h8czoxMzoiY29uZmlndXJhdGlvbiI7aHRtbF9lZGl0b3JfcHJlZmVyZW5jZV9zdGF0dXN8czo0OiJOT05FIjs=’)

According to the advice of Zen Cart experts, I can avoid this by changing that parameter.

Any thoughts? Thanks again.

Thanks for your time. I am using PHP: 5.3.3, because I have an old version of Zen Cart ( 1.5.1 ), so that is the recommended PHP Version for it.

I have had problems when I use newer PHP versions for my cart, so until I upgrade it, I prefer to use PHP 5.3.3.

Thanks for your answer.

Could try .htaccess file with line

php_value session.hash_function 1

This topic was automatically closed after 43 hours. New replies are no longer allowed.