Keeping Someone Logged In

After someone logs into my system and then closes their browser they
are logged out of the system and have to re-login. How to I make sure
the person stays logged in until they explicitly choose to log out?

Better yet on login if the person selects 'keep me logged in' how do I
keep the user logged in?

Thanks for your help :-).