the problem that has been described sounds like to be a simple setting on your router, you can look up the setting of your router by typing in the ip address (Example
HTTP://192.184.1.1) of your wireless router on the internet address bar. i am using a TP-Link router and you can do the same with mine.
look for the wireless general settings on your router (set date/time etc..) they should be an option to set a "time out period" this is just basically where the wireless will boot you off the internet after the time which is set.