Added localStorage for session cookies