Advanced PHP5 sessions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dandri
Forum Newbie
Posts: 7
Joined: Mon Oct 17, 2005 9:20 am

Advanced PHP5 sessions

Post by dandri »

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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

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).
Post Reply