Server = Linux / Apache 2.2.9 / mcrypt 2.5.7
Reason, I still can not understand.
At the moment I came to that data are stored in coockies come from the damaged ‘encode’.
When reading and interpretation of data from cookies - errors. CI - creates a new session and all data is encrypted and stored perfectly!
After that, when adding data to the session - on the call to sess_write() ->> $this->_set_cookie($cookie_userdata) ->> $this->CI->encrypt->encode($cookie_data) ->> encode() ->> $this->mcrypt_encode($enc, $key) ->> $this->_add_cipher_noise() - here at the outlet produced a short string, and later in the session recorded already corrupted data.
At the moment, I was confronted with the fact that the function _add_cipher_noise() gives bad data.
mcrypt_enc_get_block_size - and where to learn option ‘td’ for this feature?