Added parameter to clear the session if its a clear settings function

Reviewer: Dan V (post commit)

Issue: GCp-9900