auto-lock

auto-lock iphone/ipad programmatically

Hi, Is there a way to 'force' the user to have auto-lock (and maybe passcode lock) on while the application is running (for security reasons mainly)? If we can't set them programmatically, can we at least check to see if they are set? Thanks, Mihai ...