Help with game questions

I have two game questions that I hope someone can help answer. I have two farms in my residence. A wheat farm and a sugarcane farm. My questions are. This farms won't collect while I'm away right? Also if I create this farms in frontier or wilderness will they still work? Or will it be the same that I have to be within range in order for them to work? And if I leave my computer running it keeps logging me out every 15 minutes. Thank you to anyone that could help.