- Code: Select all
; 0: MD5 (128 bits) (php 5.x default)
; 1: SHA-1 (160 bits)
session.hash_function = 1
Instead of MD5 (the default) session_id in table sessions is too short to store
the session value (40 chars with sha1). Thus it is impossible to do anything
after install because it triggers a "duplicate key" error found in the sessions
table.
Suggested fix with utf-8 tables :
- Code: Select all
ALTER TABLE `sessions` CHANGE `session_id` `session_id` VARCHAR( 40 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL
and everything works fine.
Otherwise one should fall back to the php.ini default of MD5 session hash.
I filed a bug with this info : http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=5033
Raphaël
