Save session when log in and restore session at first launch if exists