Keeping your laptop awake for more than 5 minutes.
Click the battery icon in the lower right corner of your screen.
Click More Power Options.
Click Change plan settings.
Adjust the times the computer will go to sleep (causing you to log back in) while running on battery and plugged in.
Click Save changes.
Thanks Bonnie Oberkirsch and Becky Donze for the inspiration to create this post!
Note: The above image shows my computer. The laptop will run for 30 minutes on battery before shutting down. That will drain the battery a bit. Be mindful of how you adjust these settings.