Fix encryption key truncate error.
Improve security of session data by encoding with secret session ID