Wi-Fi auto-disconnect for iPhone?
You may be able to configure the router to only allow WiFi access to the iPhone during certain times of day.  This isn't a connection timeout so much as a parental control over the time of day WiFi is allowed.  The setting is located in your routers admin interface.