title: iOS Swift : How to find if an NSURLSession has timed out
body: <p>In the iOS app I am currently building, I am trying to show a message to the user when the session has timed out. I read the documentation for <code>NSURLSessionDelegate</code> but couldn't find out any method for letting me know if the session has timed out. How do I go about doing this? Any help is appreciated. </p>