Add session setting to login