Removed secret key and session handling