I am trying to make sure that I am using sha512 to hash the session. When I print my algo, I get
Array ( [0] => md2 [1] => md4 [2] => md5 [3] => sha1 [4] => sha224 [5] => sha256 [6] => sha384 [7] => sha512 [8] => ripemd128 etc.... )
So in php.ini I set it as
session.hash_function = 7
The only reason I got confused is that in the .ini file it lists hash schemes differently than what php prints, like 0 as md5, not md2.
; Select a hash function ; 0: MD5 (128 bits) ; 1: SHA-1 (160 bits)
Is it just default hashing schemes, maybe an older version of php or something else?
php session hash
Brian
source share