I think 30 minutes before getting logged out is a good balance between security and convenience but security shouldn't be a real concern on this forum so it could possibly be longer.
I've seen comments from people who lost their posts after composing and hitting the submit button but now I...