Implement basic session restoring