Added base64 encoding to session data.