Added a parameter to read session data.