Advanced PHP5 sessions
Moderator: General Moderators
Advanced PHP5 sessions
I noticed that when 'session.hash_function' configuration option of php.ini is set to 1 (MD5), the session identifier is a 26-digit hexadecimal string and not 32. Also when it is set to 2 (SHA1), the session identifier is a 32-digit hexadecimal string and not 40.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Session Handling wrote:session.hash_function integer
session.hash_function allows you to specify the hash algorithm used to generate the session IDs. '0' means MD5 (128 bits) and '1' means SHA-1 (160 bits).