I'm looking to make an iphone that will log a user out of a session once the app has been either idle in the foreground or in the background for a specified period of time.
I'm guessing that I should use an NSTimer, but I don't know where to start it. How can I tell when a user has been idle when the app is in the foreground? I'm guessing that it should be a UIApplicationDelegate method?
Any suggestions? Thanks.