Corrected logic
Logout when TTL from LS expires