Use name generateId() was my first idea, but regenerate_session_id() actually changes session ID. Additionally class already contains method regenerateId() which would be more confusing and error-prone.