session

Global USE flag

Add persistent session support