contao/import — Issue #3644: session_id length
Author: importer
Created: 2011-11-29 21:54:45+00:00
State: open
Labels: backend, Defect

When the correct username and password is inserted to login into a backend, contao displays a message "**You have to allow cookies to use Contao.**" even if the cookies in browser is enabled.

In the PHP configuration on a server is set a value "**session.hash_function = sha256**". PHP function **session_id()** returns the string with lenght 52 characters. The column "**sessionID**" in the database table "**tl_session**" has length only 40 characters. User cannot login because of the lenght of string in database is not equal to length of string returned by "**session_id()**" function.

I repaired this problem with change of the varchar datatype length. It would be great to include this possibility of using sha256 hash function.

--- _Originally created by feropeterko on November 18th, 2011, at 12:29pm (ID 3644)_