Implemented functionality for iOS when the user has selected the "store session" switch for remember credentials.